SA-MP Forums Archive
fix - 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: fix (/showthread.php?tid=483619)



fix - madog357 - 27.12.2013

public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
dcmd(register,8,cmdtext);
return 1;
}


C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 6) : warning 217: loose indentation
C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 6) : error 017: undefined symbol "strtok"
C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 6) : error 033: array must be indexed (variable "cmd")
C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 7) : error 017: undefined symbol "dcmd_register"
C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 : warning 217: loose indentation
C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 5) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.


Re: fix - madog357 - 27.12.2013

sorry
C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 6) : error 017: undefined symbol "strtok"
C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 6) : error 033: array must be indexed (variable "cmd")
C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 7) : error 017: undefined symbol "dcmd_register"
C:\Users\william\Desktop\samp\gamemodes\fun.pwn(12 5) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


Re: fix - Hansrutger - 27.12.2013

I've heard to not have dcmd inside your OnPlayerCommandText.