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

Hello, after i added vip system i got 4 errors in vips command
Errors:
Код:
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73602) : error 017: undefined symbol "PlayerName"
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73602) : error 017: undefined symbol "PlayerName"
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73602) : error 029: invalid expression, assumed zero
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73602) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Command:
Код:
CMD:vips(playerid, params[])
{
    	MessageToAdmins(playerid,"/viplist");
		new count = 0;
		new VipString[1500];
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
	 		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];
       >>Line 73602>>    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
					format(file,sizeof(file),"rAdmin/Users/%s.ini",name);
					PlayerInfo[i][VipLevel] = dini_Int(file, "VipLevel");
					format(VipString, sizeof(VipString), "%s{FF00FF}Level: {FF0000}%d {FF00FF}- {00FF00}%s (Id:{FF0000}%i{00FF00}) {FF00FF}| %s \n", VipString, PlayerInfo[i][VipLevel], PlayerName2(i),i,VipRank);
					ShowPlayerDialog(playerid, DIALOG_VIP, DIALOG_STYLE_MSGBOX, "[!] Online VIP's", VipString, "OK", "");
					count++;
				}
			}
		}
		if (count == 0)
		{
			ShowPlayerDialog(playerid, DIALOG_VIP, DIALOG_STYLE_MSGBOX, "[!] Online VIP's", "No online VIP's", "OK", "");
		}
		return 1;
}
Reply
#2

new PlayerName[MAX_PLAYER_NAME];
Reply
#3

Now i have that errors:
Код:
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73606) : error 091: ambiguous constant; tag override is required (symbol "name")
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73606) : error 039: constant symbol has no size
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73607) : error 091: ambiguous constant; tag override is required (symbol "name")
D:\GTA PROG\for samp\servers\DHTDM-RP ™\Gamemodes\SPTDM3E.pwn(73605) : warning 204: symbol is assigned a value that is never used: "PlayerName"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
code:
Код:
CMD:viplist(playerid, params[])
{
    	SendCommandToAdmins(playerid,"/viplist");
		new count = 0;
		new VipString[1500];
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
	 		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 name[MAX_PLAYER_NAME];
				73606>>	GetPlayerName(i, name, sizeof(name));
				73607>>    format(file,sizeof(file),"rAdmin/Users/%s.ini",name);
					PlayerInfo[i][VipLevel] = dini_Int(file, "VipLevel");
					format(VipString, sizeof(VipString), "%s{FF00FF}Level: {FF0000}%d {FF00FF}- {00FF00}%s (Id:{FF0000}%i{00FF00}) {FF00FF}| %s \n", VipString, PlayerInfo[i][VipLevel], PlayerName2(i),i,VipRank);
					ShowPlayerDialog(playerid, DIALOG_VIP, DIALOG_STYLE_MSGBOX, "[!] Online VIP's", VipString, "OK", "");
					count++;
				}
			}
		}
		if (count == 0)
		{
			ShowPlayerDialog(playerid, DIALOG_VIP, DIALOG_STYLE_MSGBOX, "[!] Online VIP's", "No online VIP's", "OK", "");
		}
		return 1;
}
Reply
#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
#5

Quote:
Originally Posted by Micko123
Посмотреть сообщение
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;

what's that man? what did u make?
Reply
#6

Did you compiled it man??
Is it working or not?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)