Usage of arrays [+REP] - 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)
+--- Thread: Usage of arrays [+REP] (
/showthread.php?tid=607446)
Usage of arrays [+REP] -
Amit1998 - 19.05.2016
EDITED
Re: Usage of arrays [+REP] -
Konstantinos - 19.05.2016
The unique SQL ID is supposed to be an integer, right? If yes, then use:
pawn Код:
checkinglog[playerid] = cache_get_field_content_int(row, "ID");
Re: Usage of arrays [+REP] -
Amit1998 - 19.05.2016
Quote:
Originally Posted by Konstantinos
The unique SQL ID is supposed to be an integer, right? If yes, then use:
pawn Код:
checkinglog[playerid] = cache_get_field_content_int(row, "ID");
|
Hum yeah. I mean, if Admin number 1 opens up the menu, and another admin opens up the menu aswell, though with a different paramters, it bugs the 1st admin's parameters because I did not implement an array system that makes each parameter unique per player id. I'll try ur suggestion right now and let you know if it worked, thanks!
Re: Usage of arrays [+REP] -
Amit1998 - 19.05.2016
Quote:
Originally Posted by Konstantinos
The unique SQL ID is supposed to be an integer, right? If yes, then use:
pawn Код:
checkinglog[playerid] = cache_get_field_content_int(row, "ID");
|
Thank you very much m8!