Set A variable in GM And Get In FS?
#3

I made a function when teams enter car its sendmessage test(so just for test but dont work)
Код:
if(newstate == PLAYER_STATE_DRIVER)
	{
	    if(GetPVarInt(playerid,"Skill")==1)
	    {
			SendClientMessage(playerid,COLOR_RED,"test");
			return 1;
		}
		return 1;
	}
But when i make this in a command it works fine:
Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		if(GetPVarInt(playerid,"Skill")==1)
	    {
	        SendClientMessage(playerid,COLOR_RED,"test");
			return 1;
		}
		return 1;
	}
Cant onplayerstatechange not detect the pvarint?
Reply


Messages In This Thread
Set A variable in GM And Get In FS? - by Admigo - 28.04.2012, 15:49
Re: Set A variable in GM And Get In FS? - by MP2 - 28.04.2012, 15:49
Re: Set A variable in GM And Get In FS? - by Admigo - 28.04.2012, 16:06
Re: Set A variable in GM And Get In FS? - by Rudy_ - 28.04.2012, 16:08
Re: Set A variable in GM And Get In FS? - by ViniBorn - 28.04.2012, 16:09
Re: Set A variable in GM And Get In FS? - by Admigo - 28.04.2012, 16:15
Re: Set A variable in GM And Get In FS? - by Admigo - 28.04.2012, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)