I Got 4 Errors in the same line !!help pls!!
#4

PHP код:
CMD:viplist(playeridparams[])
{
        
SendCommandToAdmins(playerid,"/viplist");
        new 
count 0;
        new 
VipString[1500];
        for(new 
0MAX_PLAYERSi++)
        {
             if (
IsPlayerConnected(i))
             {
                if(
PlayerInfo[i][VipLevel] >= 1)
                 {
                     switch(
PlayerInfo[i][VipLevel])
                    {
                        case 
1:
                        {
                            
VipRank "{5E3B00}Bronze {00FF00}Vip";
                        }
                        case 
2:
                        {
                            
VipRank "{909090}Silver {00FF00}Vip";
                        }
                        case 
3:
                        {
                            
VipRank "{FFAE00}Gold {00FF00}Vip";
                        }
                        case 
4:
                        {
                            
VipRank "{00FFFF}Premium {00FF00}Vip";
                        }
                    }
                    new 
file[300];
                
73605>>    new PlayerName[MAX_PLAYER_NAME];
                
73606>>    GetPlayerName(iPlayerNamesizeof(PlayerName));
                
73607>> format(file,sizeof(file),"rAdmin/Users/%s.ini",PlayerName);
                    
PlayerInfo[i][VipLevel] = dini_Int(file"VipLevel");
                    
format(VipStringsizeof(VipString), "%s{FF00FF}Level: {FF0000}%d {FF00FF}- {00FF00}%s (Id:{FF0000}%i{00FF00}) {FF00FF}| %s \n"VipStringPlayerInfo[i][VipLevel], PlayerName2(i), iVipRank);
                    
ShowPlayerDialog(playeridDIALOG_VIPDIALOG_STYLE_MSGBOX"[!] Online VIP's"VipString"OK""");
                    
count++;
                }
            }
        }
        if (
count == 0)
        {
            
ShowPlayerDialog(playeridDIALOG_VIPDIALOG_STYLE_MSGBOX"[!] Online VIP's""No online VIP's""OK""");
        }
        return 
1;

Reply


Messages In This Thread
I Got 4 Errors in the same line !!help pls!! - by vikoo - 07.12.2016, 18:43
Re: I Got 4 Errors in the same line !!help pls!! - by J0sh... - 07.12.2016, 18:54
Re: I Got 4 Errors in the same line !!help pls!! - by vikoo - 07.12.2016, 19:48
Re: I Got 4 Errors in the same line !!help pls!! - by Micko123 - 07.12.2016, 19:59
Re: I Got 4 Errors in the same line !!help pls!! - by vikoo - 07.12.2016, 20:07
Re: I Got 4 Errors in the same line !!help pls!! - by Micko123 - 07.12.2016, 20:08

Forum Jump:


Users browsing this thread: 1 Guest(s)