please help me
#1

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?


Reply


Messages In This Thread
please help me - by sant - 25.06.2009, 03:44
Re: please help me - by Pixels^ - 25.06.2009, 03:49
Re: please help me - by sant - 25.06.2009, 03:49
Re: please help me - by sant - 25.06.2009, 14:04
Re: please help me - by woot - 25.06.2009, 14:06
Re: please help me - by sant - 25.06.2009, 14:09

Forum Jump:


Users browsing this thread: 1 Guest(s)