10.04.2014, 00:33
So I want to make it when someone logs in it sets Online = 1 In MySQL
Okay so this is what is on my OnPlayerCOnnect
And OnPlayerDisconnect
but when they connect, it doesnt seem to actuallly set them Online in MySQL.
Please Help
Okay so this is what is on my OnPlayerCOnnect
pawn Код:
new query[250];
mysql_format(MysqlCon, query, sizeof(query), "UPDATE `players` SET `Online`=1 WHERE `ID`=%d AND `user`='%e'",
pInfo[playerid][pID],
PlayerName(playerid));
mysql_tquery(MysqlCon, query, "", "");
pawn Код:
new query[250];
mysql_format(MysqlCon, query, sizeof(query), "UPDATE `players` SET `Online`=0 WHERE `ID`=%d AND `user`='%e'",
pInfo[playerid][pID],
PlayerName(playerid));
mysql_tquery(MysqlCon, query, "", "");
but when they connect, it doesnt seem to actuallly set them Online in MySQL.
Please Help