|
You last visited: Today at 14:37
Advertisement
[Mini-How-PHP]Online player print php
Discussion on [Mini-How-PHP]Online player print php within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
03/25/2013, 17:37
|
#1
|
elite*gold: 0
Join Date: Oct 2010
Posts: 178
Received Thanks: 86
|
[Mini-How-PHP]Online player print php
Hi.
Mini howto release php
Online player print php
PHP Code:
<?php $select = "SELECT id,name,last_play FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 70 MINUTE) < last_play;"; $query = mysql_query($select); while($fetch = mysql_fetch_object($query)) { ?>
<p><b><font color="green">Online Player : </font></b><?php echo $fetch->name; ?> </p>
Sory bad english.
|
|
|
03/25/2013, 17:43
|
#2
|
elite*gold: 12
Join Date: Jun 2012
Posts: 978
Received Thanks: 860
|
Just as you said it's a mini release, so it belongs to
|
|
|
03/25/2013, 17:54
|
#3
|
elite*gold: LOCKED
Join Date: Jan 2012
Posts: 807
Received Thanks: 245
|
Please post your php code like this:
|
|
|
03/25/2013, 21:42
|
#4
|
elite*gold: 0
Join Date: Oct 2007
Posts: 131
Received Thanks: 10
|
this is not good system INTERVAL 70 MINUTE) < last_play;
i search for one ther say how mutsh online now!
|
|
|
03/25/2013, 21:43
|
#5
|
elite*gold: 0
Join Date: Oct 2010
Posts: 178
Received Thanks: 86
|
Fully adjustable ...
|
|
|
03/25/2013, 23:32
|
#6
|
elite*gold: 0
Join Date: Feb 2013
Posts: 268
Received Thanks: 425
|
Kommt zu kleine Releases
|
|
|
03/25/2013, 23:41
|
#7
|
elite*gold: 0
Join Date: Jul 2011
Posts: 2,019
Received Thanks: 1,471
|
Not bad but this is easy to make... and is in all homepages
|
|
|
03/25/2013, 23:49
|
#8
|
elite*gold: 0
Join Date: Feb 2010
Posts: 179
Received Thanks: 350
|
wtf is this?! xD
correct way:
get this form game (channel)
PHP Code:
<? function GetUserCount($ip, $port) { $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); $result = socket_connect($socket, $ip, $port); $query = "@USER_COUNT\n"; $write_res = socket_write($socket, $query, strlen($query)); $recv_res = socket_recv($socket, $output, 5056, 0); socket_close($socket); $output = substr($output, 17); return array( "shinsoo" => intval(substr($output, 0, -7)), "chunjo" => intval(substr($output, 0, -5)), "jinno" => intval(substr($output, 0, -3)), "unknown" => intval(substr($output, 0, -1)) ); } $count = GetUserCount("your.server.ip", 13000); echo "Shinsoo: " . $count["shinsoo"] . "<br>"; echo "Chunjo: " . $count["chunjo"] . "<br>"; echo "Jinno: " . $count["jinno"] . "<br>"; echo "?: " . $count["unknown"] . "<br>"; echo "All: " . ($count["shinsoo"] + $count["chunjo"] + $count["jinno"] + $count["unknown"]) . "<br>"; ?>
|
|
|
03/26/2013, 00:18
|
#9
|
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
|
Quote:
Originally Posted by balika01
PHP Code:
return array( "shinsoo" => intval(substr($output, 0, -7)), "chunjo" => intval(substr($output, 0, -5)), "jinno" => intval(substr($output, 0, -3)), "unknown" => intval(substr($output, 0, -1)) );
|
Wtf is that?! What if the user count for a reign is > 9? Just use  , that's what it's made for, dude...
|
|
|
 |
Similar Threads
|
[B] Mini Mp3 Player [S] Cash/ÜB
07/20/2012 - Trading - 1 Replies
Was ich biete: 3x Mini Mp3 Player mit Integriertem Akku, 3-5h Laufzeit.
Zustand: 2 Sind Original verpackt, 1 ist geöffnet(Schwarzer!)
Preis: 10€ Stück +Versand
Bild:
http://s1.directupload.net/file/d/2955/tej6bjry_j pg.htm
Könnt euch Per PN, Skype, etc. melden.
|
PHP - print
06/21/2012 - Web Development - 10 Replies
Huhu,
habe ein Problem zum print-Befehl von PHP.
Habe diesen Quellcode hier:
Ich möchte gerne das Ergebnis hier (ist jetzt ein Beispiel-Datum):
|
[WTB] unded mini ghostly/mini panada/mini polar bear
05/07/2012 - Guild Wars Trading - 2 Replies
Hi,
Would like to buy one of those pets. Make me an offer if you got one.
Thanks.
|
[08.01.2010] Aless D3D Mini | Player,- ZombieOPK, Telekill, UserControl, GMWarning
01/08/2011 - WarRock Hacks, Bots, Cheats & Exploits - 15 Replies
Aless D3D Mini
Name: Aless D3D Mini
Update Date: 08.01.2010
Status: Detected
Hallo, ich habe mir gedacht, das ich eine Mini-Version rausbringe. Ich meine, wofür braucht man so viele Funktionen die man garnicht benutzt. Dann muss man immer im Hack die Funktionen suchen und so weiter.
Hier sind nur die Funktionen, die am meisten benutzt werden.
Screen:
|
All times are GMT +1. The time now is 14:40.
|
|