Times on Server - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Times on Server (
/showthread.php?tid=161354)
Times on Server -
ScottCFR - 19.07.2010
I'm working on an account system with MySQL (Not that it matters). But, how to I set it so that every time someone joins it adds to their times on server. Here's the string that defines times on server:
Code:
AccountInfo[playerid][TOS]
I tried under onplayerconnect to just +1 but I guess that's not right.
Re: Times on Server -
Finn - 19.07.2010
pawn Code:
AccountInfo[playerid][TOS]++;
AccountInfo[playerid][TOS] += 1;
AccountInfo[playerid][TOS] = (AccountInfo[playerid][TOS] + 1);