Connected players
#3

Your code looks like it requires older version of BlueG's MySQL plugin but I wouldn't suggest you to use that. This code is as per the latest version:
pawn Код:
new
    num_Players,
    msg_String[128],
    Cache:result
;
    result = mysql_query(connectionHandle, "SELECT COUNT(*) FROM `players`");
    //Better to count the number of rows than the number of results.
    num_Players = cache_get_value_index_int(0, 0);
    cache_delete(result);
    //format stuffs.
Reply


Messages In This Thread
Connected players - by Loinal - 04.01.2017, 08:12
Re: Connected players - by Donboo - 04.01.2017, 08:23
Re: Connected players - by Lordzy - 04.01.2017, 08:24
Re: Connected players - by Loinal - 04.01.2017, 11:22
Re: Connected players - by Yaa - 04.01.2017, 11:29
Re: Connected players - by Loinal - 04.01.2017, 11:36
Re: Connected players - by Loinal - 04.01.2017, 11:42
Re: Connected players - by Konstantinos - 04.01.2017, 11:49
Re: Connected players - by Loinal - 04.01.2017, 12:08
Re: Connected players - by BiosMarcel - 04.01.2017, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)