/viplist - is there any thing wrong?
#1

PHP код:
CMD:viplist(playeridparams[])
{
    new 
count 0string[128];
    for(new 
0MAX_PLAYERS++)
    {
    if(
IsPlayerConnected(i))
    {
    if(
PlayerInfo[i][pVIP] >= 1)
    {
    
format(stringsizeof(string),"- {ffff00}%s{00ff00}| {0066ff}(ID:%s) {00ff00}| {996600}Bronze V.I.P\n"GetName(i), i);
    
count++;
    }
    if(
PlayerInfo[i][pVIP] >= 2)
    {
    
format(stringsizeof(string),"- {ffff00}%s {00ff00}| {0066ff}(ID:%d) {00ff00}| {adad85}Silver V.I.P\n"GetName(i), i);
    
count++;
    }
    if(
PlayerInfo[i][pVIP] >= 3)
    {
    
format(stringsizeof(string),"- {ffff00}%s {00ff00}| {0066ff}(ID:%d) {00ff00}| {e68a00}GOLD V.I.P\n"GetName(i), i);
    
count++;
    }
    }
    }
    if(
count == 0)
    {
    
ShowPlayerDialog(playerid18DIALOG_STYLE_MSGBOX,"{00ff00}Online V.I.P(s):",string"Ok""");
    }
    else
    {
    
ShowPlayerDialog(playerid18DIALOG_STYLE_MSGBOX,"{00ff00}Online V.I.P(s):","There isn't any online V.I.P""Ok""");
    }
    return 
1;

is there any error anything something not normal with this code? if so hope you correct it for me
Reply


Messages In This Thread
/viplist - is there any thing wrong? - by RyderX - 06.02.2017, 10:47
Re: /viplist - is there any thing wrong? - by AndreiWow - 06.02.2017, 10:55
Re: /viplist - is there any thing wrong? - by RyderX - 06.02.2017, 10:56
Re: /viplist - is there any thing wrong? - by SyS - 06.02.2017, 10:59
Re: /viplist - is there any thing wrong? - by iLearner - 06.02.2017, 11:00
Re: /viplist - is there any thing wrong? - by Logic_ - 06.02.2017, 11:23
Re: /viplist - is there any thing wrong? - by RyderX - 06.02.2017, 11:37

Forum Jump:


Users browsing this thread: 1 Guest(s)