#1

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.
Reply
#2

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
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)