Help with '/vips' command
#1

Hello.

So basically, when I am VIP and type the command "/vips", to see the online vips, I see myself there, but if I am not VIP and type the command again, it does not show the message, that there is no VIP's online.


Here is the code:

PHP код:
CMD:vips(playeridparams[])
{
        new 
vipstring[2000];
        if(
IsPlayerConnected(playerid))
        {
            for (new 
0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
pInfo[i][pVipLevel] > 0)
                    {
                        
format(vipstringsizeof(vipstring),"{ffffff}%s%s (ID:%d)\n"vipstringPlayerName(i), playerid);
                    }
                }
            }
            
ShowPlayerDialog(playerid,DIALOG_VIPS,DIALOG_STYLE_MSGBOX,"{B266FF}Online VIPs:",vipstring,"Close","");
        }
         else return 
SendClientMessage(playerid,-1,""chat" There are no VIP's online.");
           return 
1;

Please help me to fix this, thank you!
Reply


Messages In This Thread
Help with '/vips' command - by D1am0nd - 21.12.2015, 14:27
Re: Help with '/vips' command - by jlalt - 21.12.2015, 14:33
Re: Help with '/vips' command - by Sh4d0w2 - 21.12.2015, 14:35
Re: Help with '/vips' command - by Skimmer - 21.12.2015, 14:40
Re: Help with '/vips' command - by D1am0nd - 21.12.2015, 14:41

Forum Jump:


Users browsing this thread: 2 Guest(s)