[HELP] Spawned cars
#6

try changing this:

if(IsPlayerInAnyVehicle(playerid))
{
DestroyVehicle(GetPlayerVehicleID(playerid));
PutPlayerInVehicle(playerid, CreateVehicle(520, X, Y, Z+2, VAngle, -1, -1, -1), 0);
}



to this



if(IsPlayerInAnyVehicle(playerid))
{
DestroyVehicle(GetPlayerVehicleID(playerid));
PutPlayerInVehicle(playerid, CreateVehicle(520, X, Y, Z+2, VAngle, -1, -1, -1), 0);
return 1;

} This way, it may not conflict with the else. I think this should be the problem. The script goes to the if, but it doesn't stop, and then it goes to the else also.
Reply


Messages In This Thread
[HELP] Spawned cars - by anito - 27.08.2012, 13:13
Re: [HELP] Spawned cars - by Sig Hansen - 27.08.2012, 13:17
Re: [HELP] Spawned cars - by anito - 27.08.2012, 13:20
Re: [HELP] Spawned cars - by xtreamer - 27.08.2012, 13:29
Re: [HELP] Spawned cars - by anito - 27.08.2012, 13:35
Re: [HELP] Spawned cars - by xtreamer - 27.08.2012, 13:37
Re: [HELP] Spawned cars - by Ranama - 27.08.2012, 13:49
Re: [HELP] Spawned cars - by xtreamer - 27.08.2012, 13:52
Re: [HELP] Spawned cars - by anito - 27.08.2012, 14:32
Re: [HELP] Spawned cars - by RedJohn - 28.08.2012, 09:46

Forum Jump:


Users browsing this thread: 3 Guest(s)