SendClientMessageToAll not respecting "if" block?
#7

pawn Код:
if(AccountInfo[playerid][Level] == ADM || OWNER)
{
    new string[128];
    if(AccountInfo[playerid][Level] == ADM)
    {
        format(string, sizeof(string), "ADM {FF0000}%s {FFFFFF}is now online!", nome);
        SendClientMessageToAll( COLOR_WHITE, string );
    }
    else if(AccountInfo[playerid][Level] == OWNER)
    {
        format(string, sizeof(string), "MASTER ADM {00FF00}%s {FFFFFF}is now online!", nome);
        SendClientMessageToAll(COLOR_WHITE, "------------------------------------------------------------------------------------------");
        SendClientMessageToAll(COLOR_WHITE, string);
        SendClientMessageToAll(COLOR_WHITE, "------------------------------------------------------------------------------------------");
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)