11-15-2013, 09:22 AM
Hello LCKB people , if i say i would add a script online players in my website , can you help me ?
|
Script add online players in site
|
|
11-15-2013, 09:22 AM
Hello LCKB people , if i say i would add a script online players in my website , can you help me ?
11-15-2013, 07:54 PM
Thats easy, just need to know PHP & Mysql... a_enable=1 in t_users = 1 player online. Select each rows with mysql & use php for convert it to string.
11-16-2013, 09:37 AM
i thought a_enable if player banned or not... xD a_zone > -1 = Player Online
11-16-2013, 09:40 AM
This question was asked million times..
11-16-2013, 09:59 AM
SELECT Count(*) FROM t_users WHERE a_zone_num <> -1; Knock yourself out.
11-16-2013, 10:34 AM
lil example provided that there is already a MySQL connection in your Script $select = "SELECT * FROM t_users WHERE a_zone_num <>-1 ;"; $result = $conn->query($select); if ($result->num_rows > -1) { $online = mysqli_num_rows($result); echo "Online Players : ".$online; } |
|
« Next Oldest | Next Newest »
|