undefined symbol "VehicleOccupied" plz define this line!!!!
#1

okey here is code
Код:
SetTimer("CarRespawn",10000,0); // Change the amount of milisecounds to what you need.

forward CarRespawn();
public CarRespawn()
{
    for(new cars=0; cars<MAX_VEHICLES; cars++)
    {
        if(!VehicleOccupied(cars))
        {
            SetVehicleToRespawn(cars);
            RepairVehicle(cars);
        }
   }
return 1;
}

and this error i got plz help me me new in this matter
Код:
H:\Documents and Settings\Bilawal2o5o\Desktop\poilts life\gamemodes\gtapilots.pwn(4461) : error 017: undefined symbol "VehicleOccupied"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

have you tried useing this code
Код:
 new VehicleOccupied;
At the top of the script?
Reply
#3

pawn Код:
#define VehicleOccupied(%0) IsPlayerInAnyVehicle(%0)
...
Reply
#4

You usually get errors because your copying of scripts ;)
Reply
#5

I thought you will add this too:

pawn Код:
forward VehicleOccupied(vehicleid);

public VehicleOccupied(vehicleid)
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerInVehicle(i,vehicleid)) return 1;
    }
    return 0;
}
Reply
#6

waht is the work of this code plz reply
Reply
#7

respawn vehicles to their main location?
Reply
#8

Use AddStaticVehicle & this function respawn X time the vehicle ._.
Reply
#9

He need them to respawn after 5 secounds when player teleports on a custom map ... Otherwise they would fall in the water.
Reply
#10

not player fall in water only vehicles go in water can i use a way to load objects fast? or i add dynamic vehicles!!!!


and i want to respawn all cars without useing cars
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)