25.10.2011, 18:43
Hello. This is my setcompany command.
However, when I compile I get this error:
pawn Код:
COMMAND:setcompany(playerid, params[])
{
new id, num;
if(sscanf(params, "ud", id, num)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /setcompany (user) (companyid (1-15)");
return 1;
}
}
Код:
C:\Users\Chuck Norris\Desktop\samp\gamemodes\Scratch.pwn(239) : error 029: invalid expression, assumed zero C:\Users\Chuck Norris\Desktop\samp\gamemodes\Scratch.pwn(239) : error 017: undefined symbol "cmd_setcompany" C:\Users\Chuck Norris\Desktop\samp\gamemodes\Scratch.pwn(239) : error 029: invalid expression, assumed zero C:\Users\Chuck Norris\Desktop\samp\gamemodes\Scratch.pwn(239) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.