Tag mismatch
#1

I could use a hand,
Thanks in advance.

PHP код:
                case 5:
                {
                    new 
id GetPVarInt(playerid"DialogValue1");
                    if(
GetPlayerVehicleAccess(playeridid) < 2)
                    {
                        
ShowErrorDialog(playerid"You are not the owner of this vehicle.");
                        return 
1;
                    }
                    if(!
strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1]) == 0)
                    {
                        
PlayerInfo[playerid][pPlate1] = 0;
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File,"data");
                        
INI_WriteInt(File"Plate1"PlayerInfo[playerid][pPlate1]);
                        
INI_Close(File);
                    }
                    else if(!
strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate2]) == 0)
                    {
                        
PlayerInfo[playerid][pPlate2] = 0;
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File,"data");
                        
INI_WriteInt(File"Plate2"PlayerInfo[playerid][pPlate2]);
                        
INI_Close(File);
                    }
                    else if(!
strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate3]) == 0)
                     {
                        
PlayerInfo[playerid][pPlate3] = 0;
                        new 
INI:File INI_Open(UserPath(playerid));
                        
INI_SetTag(File,"data");
                        
INI_WriteInt(File"Plate3"PlayerInfo[playerid][pPlate3]);
                        
INI_Close(File);
                    }
                    new 
msg[128];
                    
VehicleCreated[id] = 0;
                    new 
money VehicleValue[id]/2;
                    
GivePlayerMoney(playeridmoney);
                    
format(msgsizeof(msg), "You have sold your vehicle for $%d."money);
                    
SendClientMessage(playeridCOLOR_WHITEmsg);
                    
RemovePlayerFromVehicle(playerid);
                    
DestroyVehicle(VehicleID[id]);
                    
SaveVehicle(id);
                } 
tag mismatches:
PHP код:
if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1]) == 0
else if(!
strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate2]) == 0
else if(!
strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate3]) == 0
Reply


Messages In This Thread
Tag mismatch - by Cubie - 13.09.2017, 12:25
Re: Tag mismatch - by NaS - 13.09.2017, 12:42
Re: Tag mismatch - by n00blek - 13.09.2017, 12:48
Re: Tag mismatch - by Cubie - 13.09.2017, 12:58
Re: Tag mismatch - by billy1337samp - 24.11.2017, 15:38
Re: Tag mismatch - by thefirestate - 24.11.2017, 16:10
Re: Tag mismatch - by billy1337samp - 24.11.2017, 16:12
Re: Tag mismatch - by thefirestate - 24.11.2017, 16:20

Forum Jump:


Users browsing this thread: 6 Guest(s)