OnPlayerCommandText ||| +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: OnPlayerCommandText ||| +REP (
/showthread.php?tid=365261)
OnPlayerCommandText ||| +REP -
KappaCro - 02.08.2012
look at this
pawn Код:
C:\Users\Korisnik\Desktop\samp03e_svr_R2_win32\gamemodes\xs2.pwn(33386) : error 017: undefined symbol "strtok"
C:\Users\Korisnik\Desktop\samp03e_svr_R2_win32\gamemodes\xs2.pwn(33386) : error 033: array must be indexed (variable "cmd")
C:\Users\Korisnik\Desktop\samp03e_svr_R2_win32\gamemodes\xs2.pwn(33385) : warning 203: symbol is never used: "idx"
that is the error i get, but the code is okay
pawn Код:
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
Btw, i did
pawn Код:
#pragma unused ret_memcpy
but i still get
pawn Код:
C:\Users\Korisnik\Desktop\samp03e_svr_R2_win32\gamemodes\xs2.pwn(65) : error 017: undefined symbol "ret_memcpy"
Re: OnPlayerCommandText ||| +REP -
KappaCro - 02.08.2012
Problem solved!
Re: OnPlayerCommandText ||| +REP -
[MM]RoXoR[FS] - 02.08.2012
I would suggest you to use sscanf instead of strtok