please help me - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: please help me (
/showthread.php?tid=83433)
please help me -
sant - 25.06.2009
I made this command so you can set your job just with a command
Код:
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;
}
and it gives me this error:
Код:
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.
How can I fix it?
Re: please help me -
Pixels^ - 25.06.2009
Which line gives that error?
Re: please help me -
sant - 25.06.2009
pJob = strval(tmp);
Re: please help me -
sant - 25.06.2009
Anyone knows whats wrong?
Re: please help me -
woot - 25.06.2009
PlayerInfo[playerid][pJob] = strval(tmp);
Since I suppose you are using godfather, lol.
Re: please help me -
sant - 25.06.2009
Quote:
Originally Posted by //exora
PlayerInfo[playerid][pJob] = strval(tmp);
Since I suppose you are using godfather, lol.
|
Im not using godfather, but I figured it out thanks to you.