removing the last spawned vehicle after spawning the new one
#3

i did this but it didnt work i added these lines on OnPlayerModelSelection (im using mSelection include) :
Код:
	if(listid == vehlist)
	{
		if(response)
		{
			if( pVehicleSpawned[playerid] != -1 )
			{
			    for( new i; i < MAX_PLAYERS; i++ )
			    {
			          if( IsPlayerInVehicle( i,  pVehicleSpawned[playerid] ) DestroyVehicle( pVehicleSpawned[playerid] );
			    }
			}
			pVehicleSpawned[playerid] = CreateVehicle(...);
			new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
     		CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(128), random(128), -1);
		}
		else
		{
		    return 0;
		}
and it gave me these errors:
Код:
E:\pawn project\gamemodes\zzz.pwn(565) : error 017: undefined symbol "pVehicleSpawned"
E:\pawn project\gamemodes\zzz.pwn(565) : warning 215: expression has no effect
E:\pawn project\gamemodes\zzz.pwn(565) : error 001: expected token: ";", but found "]"
E:\pawn project\gamemodes\zzz.pwn(565) : error 029: invalid expression, assumed zero
E:\pawn project\gamemodes\zzz.pwn(565) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
removing the last spawned vehicle after spawning the new one - by absolute - 01.03.2013, 09:16
Re: removing the last spawned vehicle after spawning the new one - by Niko_boy - 01.03.2013, 09:23
Re: removing the last spawned vehicle after spawning the new one - by absolute - 01.03.2013, 09:31
Re: removing the last spawned vehicle after spawning the new one - by Niko_boy - 01.03.2013, 12:27
Re: removing the last spawned vehicle after spawning the new one - by absolute - 01.03.2013, 13:00

Forum Jump:


Users browsing this thread: 1 Guest(s)