Last active
August 29, 2015 14:23
-
-
Save continue98/02ee6fcb3a553601f0c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stock SavePlayerOnline(const playerid) | |
{ | |
new counter_online_server = 0; | |
foreach(new i: Player) | |
{ | |
counter_online_server ++; | |
} | |
new query_string[64 + 20 + 5]; | |
mysql_format(handle, query_string, sizeof(query_string), "INSERT INTO `show_online` (`Date`, `Online`) VALUES (NOW(), '%d')", counter_online_server); | |
mysql_function_query(handle, query_string, false, "", ""); | |
query_string[0] = EOS; | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment