Skip to content

Instantly share code, notes, and snippets.

@continue98
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save continue98/02ee6fcb3a553601f0c4 to your computer and use it in GitHub Desktop.
Save continue98/02ee6fcb3a553601f0c4 to your computer and use it in GitHub Desktop.
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