SA-MP Forums Archive
Help is needed please help - 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: Help is needed please help (/showthread.php?tid=271125)



Help is needed please help - MA_proking - 23.07.2011

Код:
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\GAMEMO~1\free.pwn(2626) : error 017: undefined symbol "idx"
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\GAMEMO~1\free.pwn(2635) : error 017: undefined symbol "idx"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Show these errors
Please help

pawn Код:
tmp = strtok(cmdtext, idx);



Re: Help is needed please help - JaTochNietDan - 23.07.2011

You need to define idx, which in the case of this function, is usually an integer.

pawn Код:
new idx;
I suggest you read up the official PAWN documentation over at CompuPhase, it's a great resource for those learning PAWN!