Jump to content

Help distroy vehicle


qSnowHD
 Share

Recommended Posts

Salut am si eu o mica problema cu system-ul distroy personal vechicle nu stiu ce sa ii mai fac

 

 

 

Cod-ul

stock DestroyPVehs(playerid)
{
	if(personalcar[1][playerid] != 0)
	{
		vehEngine[personalcar[1][playerid]] = 0;
		DestroyVehicle(personalcar[1][playerid]);
		OwnedVeh(personalcar[1][playerid]) = 0;
		Gas[personalcar[1][playerid]] = 100;
		personalcar[1][playerid] = 0;
	}
	if(personalcar[2][playerid] != 0)
	{
		vehEngine[personalcar[2][playerid]] = 0;
		DestroyVehicle(personalcar[2][playerid]);
		OwnedVeh(personalcar[2][playerid]) = 0;
		Gas[personalcar[2][playerid]] = 100;
		personalcar[2][playerid] = 0;
	}
	if(personalcar[3][playerid] != 0)
	{
		vehEngine[personalcar[3][playerid]] = 0;
		DestroyVehicle(personalcar[3][playerid]);
		OwnedVeh(personalcar[3][playerid]) = 0;
		Gas[personalcar[3][playerid]] = 100;
		personalcar[3][playerid] = 0;
	}
	if(personalcar[4][playerid] != 0)
	{
		vehEngine[personalcar[4][playerid]] = 0;
		DestroyVehicle(personalcar[4][playerid]);
		OwnedVeh(personalcar[4][playerid]) = 0;
		Gas[personalcar[4][playerid]] = 100;
		personalcar[4][playerid] = 0;
	}
	if(personalcar[5][playerid] != 0)
	{
		vehEngine[personalcar[5][playerid]] = 0;
		DestroyVehicle(personalcar[5][playerid]);
		OwnedVeh(personalcar[5][playerid]) = 0;
		Gas[personalcar[5][playerid]] = 100;
		personalcar[5][playerid] = 0;
	}
	return 1;
}

Cod-ul cu erroarea

C:\Users\Alexandra\Desktop\BigZone Romania RO#EN\gamemodes\girlshare.ro_BigZoneGM.pwn(4740) : error 028: invalid subscript (not an array or too many subscripts): "personalcar"
C:\Users\Alexandra\Desktop\BigZone Romania RO#EN\gamemodes\girlshare.ro_BigZoneGM.pwn(4740) : warning 215: expression has no effect
C:\Users\Alexandra\Desktop\BigZone Romania RO#EN\gamemodes\girlshare.ro_BigZoneGM.pwn(4740) : error 001: expected token: ";", but found "]"
C:\Users\Alexandra\Desktop\BigZone Romania RO#EN\gamemodes\girlshare.ro_BigZoneGM.pwn(4740) : error 029: invalid expression, assumed zero
C:\Users\Alexandra\Desktop\BigZone Romania RO#EN\gamemodes\girlshare.ro_BigZoneGM.pwn(4740) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.