[HELP] Problem with crashing when type staff pin
#2

pawn Код:
if(dialogid == DIALOG_STAFFPIN)
{
    if ( !response ) return Kick ( playerid );
    {
        if(strcmp(inputtext,PlayerInfo[playerid][pStaffPin],true))
        {
            if (PlayerInfo[playerid][pAdmin] == 5)
            {
                new aloginstring[128];
                format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Head Admin [%d]%s se ulogirao.", playerid, GetName(playerid));
                SendMessageToAdmins(COLOR_WHITE,aloginstring);
            }
            else if (PlayerInfo[playerid][pAdmin] == 6)
            {
                new aloginstring[128];
                format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Administrator [%d]%s se ulogirao.", playerid, GetName(playerid));
                SendMessageToAdmins(COLOR_WHITE,aloginstring);
            }
            else if (PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
            {
                new aloginstring[128];
                format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Admin [%d]%s se ulogirao.", playerid, GetName(playerid));
                SendMessageToAdmins(COLOR_WHITE,aloginstring);
            }
        }
        else
        {
            return SetTimerEx("KickTime", 1000, false, "i", playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] Problem with crashing when type staff pin - by TiXz0r - 20.02.2015, 15:22
Re: [HELP] Problem with crashing when type staff pin - by KayJ - 20.02.2015, 15:25
Re: [HELP] Problem with crashing when type staff pin - by TiXz0r - 20.02.2015, 15:45

Forum Jump:


Users browsing this thread: 1 Guest(s)