/o problem
#2

need to limit them, as the if statements gets confused.
pawn Код:
else if(PlayerInfo[playerid][pAdmin] == 2)
    {
        new string[128];
        format(string, sizeof(string), "(( Junior Admin %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
    }
        else if(PlayerInfo[playerid][pAdmin] == 3)
    {
        new string[128];
        format(string, sizeof(string), "(( General Admin %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
    }
        else if(PlayerInfo[playerid][pAdmin] >= 4 && PlayerInfo[playerid][pAdmin] < 1337)
    {
        new string[128];
        format(string, sizeof(string), "(( Senior Admin %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
    }
        else if(PlayerInfo[playerid][pAdmin] == 1337)
    {
        new string[128];
        format(string, sizeof(string), "(( Head Admin %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
    }
        else if(PlayerInfo[playerid][pAdmin] >= 1338 && PlayerInfo[playerid][pAdmin] < 99998)
    {
        new string[128];
        format(string, sizeof(string), "(( Community Manager %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
    }
        else if(PlayerInfo[playerid][pAdmin] == 99998)
    {
        new string[128];
        format(string, sizeof(string), "(( Assistance Executive Admin %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
    }
    else if(PlayerInfo[playerid][pHelper] >= 99999)
    {
        new string[128];
        format(string, sizeof(string), "(( Executive Admin %s: %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_OOC,string);
        return 1;
    }
Reply


Messages In This Thread
/o problem - by Nivniv2 - 22.02.2013, 18:25
Re: /o problem - by park4bmx - 22.02.2013, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)