Error 006: must be assinged to an array - 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: Error 006: must be assinged to an array (
/showthread.php?tid=140521)
Error 006: must be assinged to an array -
DaHP14Y3R - 09.04.2010
Код:
C:\Users\Tont\Desktop\samp03asvr_R7_win32\gamemodes\Play3r1337RPG.pwn(515) : error 006: must be assigned to an array
Line 515 :
pawn Код:
PlayerInfo[giveplayerid][pAdmin] = level;
level, giveplayerid
pawn Код:
new level;
new giveplayerid;
giveplayerid = strval(tmp);
level = strtok(cmdtext, idx);
Re: Error 006: must be assinged to an array -
Norn - 09.04.2010
Quote:
Originally Posted by DaHP14Y3R
Код:
C:\Users\Tont\Desktop\samp03asvr_R7_win32\gamemodes\Play3r1337RPG.pwn(515) : error 006: must be assigned to an array
Line 515 :
pawn Код:
PlayerInfo[giveplayerid][pAdmin] = level;
level, giveplayerid
pawn Код:
new level; new giveplayerid; giveplayerid = strval(tmp); level = strtok(cmdtext, idx);
|
Use zcmd and sscanf, ditch all the strtok crap.