How to fix it .
#1

Hi guys I need help in /n I make following cmds . But If i am admin lvl > 1 it shows my /n tag as [player] but i explain [Administrator] ? WTF .


Код:
	if (PlayerInfo[playerid][pConnectSeconds] >= 0 && PlayerInfo[playerid][pConnectSeconds] <= 90000)
		 	{
			 	format(string, sizeof(string), "[Newbie] %s: %s", sendername, result);
		 	}
	   		else if (PlayerInfo[playerid][pConnectSeconds] > 90000)
	   		{
			   format(string, sizeof(string), "[Player] %s: %s", sendername, result);
	   		}
	   		else if(PlayerInfo[playerid][pHelper] == 1 || PlayerInfo[playerid][pConnectSeconds] >= 0)
	   		{
			   format(string, sizeof(string), "[Helper] %s: %s", sendername, result);
	   		}
			else if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pConnectSeconds] >= 0)
			{
				format(string, sizeof(string), "[Administrator] %s: %s", sendername, result);
			}
Reply
#2

Try this one.
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pConnectSeconds] >= 0)
    {
        format(string, sizeof(string), "[Administrator] %s: %s", sendername, result);
    }
    else if(PlayerInfo[playerid][pHelper] == 1 || PlayerInfo[playerid][pConnectSeconds] >= 0)
    {
        format(string, sizeof(string), "[Helper] %s: %s", sendername, result);
    }
    else if (PlayerInfo[playerid][pConnectSeconds] > 90000)
    {
        format(string, sizeof(string), "[Player] %s: %s", sendername, result);
    }
    else if (PlayerInfo[playerid][pConnectSeconds] >= 0 && PlayerInfo[playerid][pConnectSeconds] <= 90000)
    {
        format(string, sizeof(string), "[Newbie] %s: %s", sendername, result);
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)