[HELP] Problems with Ranks
#1

I have created my new Register system, it works good so far, I have also maked a pRank, it saves my Police Rank, I will add /giverank soon...

But that is not the problem, if I make myself Rank 1, and I got a command that looks like this...

Код:
  if (strcmp("/ra", cmdtext, true, 3) == 0)
	{
	  if(GetPlayerTeam(playerid) != 8) return SendClientMessage(playerid,0xFF0000FF, "Identification Error - You are not a Police Officer.");
    if(PlayerInfo[playerid][pRank] <= 1) return SendClientMessage(playerid,0xFF0000FF, "Identification Error - You need LAE Rank 1 to do this.");
		if(cmdtext[3] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /ra [text]");
    	new playername[26];
    	GetPlayerName(playerid, playername, 26);
    	format(string, sizeof(string), "Radio Call from Officer %s:%s, over**", playername, cmdtext[3]);
    	for(new i=0;i<MAX_PLAYERS;i++)
    	{ if(GetPlayerTeam(playerid) == 8) { SendClientMessage(i, 0x0000FFFF, string); } }
    	return 1;
	}
I got this also in it...

Код:
if(PlayerInfo[playerid][pRank] <= 1)
The problem is that if a Player with Rank 1 tries to use the cmd, it just tells me Identification Error - You need LAE Rank 1 to do this...
But if I put the Player to Rank 2, he/her can use the cmd...

I want players with Rank 1 to use this cmd, not Only higher ranks...

Thanks



Reply


Messages In This Thread
[HELP] Problems with Ranks - by FreddeN - 05.11.2009, 11:38
Re: [HELP] Problems with Ranks - by klavins - 05.11.2009, 11:48
Re: [HELP] Problems with Ranks - by FreddeN - 05.11.2009, 11:49
Re: [HELP] Problems with Ranks - by yom - 05.11.2009, 11:52
Re: [HELP] Problems with Ranks - by FreddeN - 05.11.2009, 12:33
Re: [UNSOLVED] Problems with Ranks - by FreddeN - 05.11.2009, 13:08

Forum Jump:


Users browsing this thread: 2 Guest(s)