25.06.2009, 03:44
I made this command so you can set your job just with a command
and it gives me this error:
How can I fix it?
Код:
else if (strcmp(cmd, "/setjob", true) == 0) { tmp = strtok(cmdtext,idx); if (!strlen(tmp)) return SendClientMessage(playerid,ORANGE,"USAGE: /setjob [1-5]"); pJob = strval(tmp); SendFormatMessage(playerid, WHITE, "SERVER: Your job now is: %d", strval(tmp)); return 1; }
Код:
C:\Users\sant\Documents\SA-MP\Sant Rp\gamemodes\srp.pwn(11231) : error 022: must be lvalue (non-constant) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.