Message doesn't showup
#2

man you are checking if the who used the command is connected ..
Fix:
pawn Код:
CMD:vips(playerid, params[])
{
    new adminstring[128];
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(pInfo[i][pVIP] > 0)
            {
                format(adminstring, sizeof(adminstring),"Name : "COL_GREEN"%s - Level : "COL_GREEN"%d - Rank : "COL_GREEN"%s\n", PlayerName(i), pInfo[i][pVIP], GetVIPName(i));
                ShowPlayerDialog(playerid,DIALOG_VIPS,DIALOG_STYLE_MSGBOX,"Online V.I.Ps",adminstring,"Close","");
             }
        }
        else return SendClientMessage(playerid,-1,"No V.I.P.s Online.");
    }
    return 1;
}
Reply


Messages In This Thread
Message doesn't showup - by ChandraLouis - 03.10.2014, 05:21
Re: Message doesn't showup - by Sawalha - 03.10.2014, 05:56
Re: Message doesn't showup - by IceBilizard - 03.10.2014, 06:28

Forum Jump:


Users browsing this thread: 1 Guest(s)