Vip not showing the names
#2

You never got the player's name.
edit:
try this
pawn Код:
COMMAND:vips(playerid, params[])
{
    new Count;
    new str[45];
    new playername[MAX_PLAYER_NAME];
    SendClientMessage(playerid, -1, "Vip online:");
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        if(Pinfo[i][VipLevel] >= 1)
        {
            Count ++;
            GetPlayerName(i, playername, sizeof(playername));
            format(str, sizeof(str), "%s %s",playername,VipName(i));
            SendClientMessage(playerid, -1, str);
        }
    }
    if(Count < 1) SendClientMessage(playerid, -1, "No Vip Online!");
    // Let the server know that this was a valid command
    return 1;
}
Reply


Messages In This Thread
Vip not showing the names - by DerickClark - 06.04.2013, 17:51
Re: Vip not showing the names - by BigGroter - 06.04.2013, 17:52
Re: Vip not showing the names - by judothijs - 06.04.2013, 17:54
Re: Vip not showing the names - by DerickClark - 06.04.2013, 17:57
Re: Vip not showing the names - by BigGroter - 06.04.2013, 18:15
Re: Vip not showing the names - by DerickClark - 06.04.2013, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)