SA-MP Forums Archive
Number of arguments doesnt match definition in for - 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: Number of arguments doesnt match definition in for (/showthread.php?tid=514498)



Number of arguments doesnt match definition in for - Riwerry - 21.05.2014

Hello guys, having this error. I dont know how to fix it

pawn Код:
for (new char = fgetchar (file); char != EOF; char = fgetchar (file))
It doesnt show anything, till I use function with this somewhere


Re: Number of arguments doesnt match definition in for - Vince - 21.05.2014

I don't think you can use "char" as a variable name since it's a Pawn keyword.


Re: Number of arguments doesnt match definition in for - SickAttack - 21.05.2014

Change "char" as its defined within pawno.


Re: Number of arguments doesnt match definition in for - Riwerry - 22.05.2014

Still same issue.