DestroyVehicle
#1

Lines:

Код:
public OnVehicleSpawn(vehicleid)
{
if(DM[playerid] == true)
DestroyVehicle(currentveh);
	return 1;
}
Errors:

C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 241) : error 017: undefined symbol "playerid"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : error 017: undefined symbol "currentveh"

If i write

new currentveh;
currentveh = GetPlayerVehicleID(playerid);

i get more errors:

C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 241) : error 017: undefined symbol "playerid"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : error 017: undefined symbol "currentveh"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 242) : warning 215: expression has no effect
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 243) : error 017: undefined symbol "currentveh"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 243) : error 017: undefined symbol "playerid"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 244) : error 017: undefined symbol "currentveh"

I want to make that if player in DM zone, he can't spawn vehicles.
Reply


Messages In This Thread
DestroyVehicle - by Louris - 03.12.2012, 11:46
Re: DestroyVehicle - by tsonn1 - 03.12.2012, 11:52
Re: DestroyVehicle - by Azazelo - 03.12.2012, 11:52
Re: DestroyVehicle - by [HK]Ryder[AN] - 03.12.2012, 12:00
Re: DestroyVehicle - by Louris - 03.12.2012, 12:02
Re: DestroyVehicle - by [HK]Ryder[AN] - 03.12.2012, 12:02
Re: DestroyVehicle - by Louris - 03.12.2012, 12:04
Re: DestroyVehicle - by Konstantinos - 03.12.2012, 12:05
Re: DestroyVehicle - by [HK]Ryder[AN] - 03.12.2012, 12:05
Re: DestroyVehicle - by Azazelo - 03.12.2012, 12:06

Forum Jump:


Users browsing this thread: 2 Guest(s)