SA-MP Forums Archive
how to fix this error... - 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: how to fix this error... (/showthread.php?tid=144535)



how to fix this error... - Micko9 - 27.04.2010

Код:
(410) : error 033: array must be indexed (variable "tarid")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
pawn Код:
new index=0;
    new tarid[255];
    new reason[255];
    tarid = strtok(params,index);
    reason = strtok(params,index);
can someone explain me why how and that?


Re: how to fix this error... - -Rebel Son- - 27.04.2010

pawn Код:
new idx;
new tarid[16];
new reason[148];
Try this.


Re: how to fix this error... - Micko9 - 28.04.2010

Quote:
Originally Posted by [N
BL!nk ]
pawn Код:
new idx;
new tarid[16];
new reason[148];
Try this.
just gives me more errors