Need help with 4errors
#4

pawn Код:
CMD:a(playerid, params[])
{
    if(Player[playerid][pAdminLevel] >= 1)
    {
        if(!isnull(params))
        {
            SendClientMessage(playerid, 0x505000FF, "USAGE : /a [text]");
        }
        else
        {
            new string[128];//This is the errors line
            if(Player[playerid][pAdminLevel] == 1) format(string, sizeof(string), "[Admin Chat] {kleur}Retired Admin{FFFFFF} %s: %s", GetName(playerid, params);
            else if(Player[playerid][pAdminLevel] == 2) format(string, sizeof(string), "[Admin Chat] {kleur}Junior Admin{FFFFFF} %s: %s", GetName(playerid, params);
            else if(Player[playerid][pAdminLevel] == 3) format(string, sizeof(string), "[Admin Chat] {kleur}General Admin{FFFFFF} %s: %s", GetName(playerid, params);
            else if(Player[playerid][pAdminLevel] == 4) format(string, sizeof(string), "[Admin Chat] {kleur}Senior Admin{FFFFFF} %s: %s", GetName(playerid, params);
            else if(Player[playerid][pAdminLevel] == 5) format(string, sizeof(string), "[Admin Chat] {kleur}Head Admin{FFFFFF} %s: %s", GetName(playerid, params);
            else if(Player[playerid][pAdminLevel] == 6) format(string, sizeof(string), "[Admin Chat] {kleur}Server Owner{FFFFFF} %s: %s", GetName(playerid, params);
            SendToAdmins(0xF2FF00FF, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Need help with 4errors - by McFellow - 09.02.2013, 16:12
Re: Need help with 4errors - by Angel.Why - 09.02.2013, 16:18
Re: Need help with 4errors - by McFellow - 09.02.2013, 16:22
Re: Need help with 4errors - by DiGiTaL_AnGeL - 09.02.2013, 16:22
Re: Need help with 4errors - by LarzI - 09.02.2013, 16:26
Re: Need help with 4errors - by McFellow - 09.02.2013, 16:26
Re: Need help with 4errors - by Angel.Why - 09.02.2013, 16:27
Re: Need help with 4errors - by LarzI - 09.02.2013, 16:29
Re: Need help with 4errors - by McFellow - 09.02.2013, 16:31
Re: Need help with 4errors - by McFellow - 09.02.2013, 16:33

Forum Jump:


Users browsing this thread: 3 Guest(s)