24.05.2016, 16:25
Hey guys,
I've been trying to use the following queries when a player logs in / out from the server:
OnPlayerDisconnect()
OnPlayerConnect()
Anywho, it doesn't set the value of Online to 0 when a player connects, tho working fine on a player disconnect.
What's the bug? Please help me <:
+REPing the helper
I've been trying to use the following queries when a player logs in / out from the server:
OnPlayerDisconnect()
PHP код:
new iQuery[1700];
mysql_format(MySQLPipeline, iQuery, sizeof(iQuery), "UPDATE `playerinfo` SET `Online` = 1 WHERE `PlayerName` = '%s'", PlayerName(playerid));
mysql_tquery(MySQLPipeline, iQuery);
PHP код:
{
new iQuery[1700];
mysql_format(MySQLPipeline, iQuery, sizeof(iQuery), "UPDATE `playerinfo` SET `Online` = 0 WHERE `PlayerName` = '%e'", PlayerName(playerid));
mysql_tquery(MySQLPipeline, iQuery);
}
What's the bug? Please help me <:
+REPing the helper