Class selection HELP [ REP + ]
#1

Hey guys, I have this:

Код:
new Guard;
then i am determinating the "Guard" into certain AddPlayerClasses, which are guarders skins:

Код:
Guard = AddPlayerClass(163, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	Guard = AddPlayerClass(164, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
And finally, in OnPlayerRequestClass i am checking it, and doing actions:

Код:
	if(classid == Guard && PlayerInfo[playerid][pScore] < 5000)
	{
		SendClientMessage(playerid, COLOR_ORANGE, "[ Server ] You do not have enough points to play guarder!");
		return 0;
	}
But.. the thing is that even if my pScore is 0 i can choose guarder class and also no message showes up, what can be the problem?

Thanks.
Reply


Messages In This Thread
Class selection HELP [ REP + ] - by _GHT_MarK445 - 20.06.2015, 21:33
Re: Class selection HELP [ REP + ] - by Dusan01 - 20.06.2015, 21:35
Re: Class selection HELP [ REP + ] - by _GHT_MarK445 - 20.06.2015, 21:50
Re: Class selection HELP [ REP + ] - by Dusan01 - 20.06.2015, 22:01
Re: Class selection HELP [ REP + ] - by _GHT_MarK445 - 20.06.2015, 22:03
Re: Class selection HELP [ REP + ] - by Dusan01 - 20.06.2015, 22:07
Re: Class selection HELP [ REP + ] - by _GHT_MarK445 - 20.06.2015, 22:17
Re: Class selection HELP [ REP + ] - by Dusan01 - 20.06.2015, 22:22
Re: Class selection HELP [ REP + ] - by _GHT_MarK445 - 20.06.2015, 22:24
Re: Class selection HELP [ REP + ] - by Dusan01 - 20.06.2015, 22:37

Forum Jump:


Users browsing this thread: 6 Guest(s)