Will that work ? (Funciton)
#1

pawn Код:
forward AllTownCars();
pawn Код:
public OnGameModeInit()
{
AllTownCars();
return 1;
}
pawn Код:
public AllTownCars()
{
AddStaticVehicle(.....);
return 1;
}
Reply
#2

Why that should not work?
And you could test it yourself instead of asking us...
Reply
#3

yeah it should

I make it even better by making an include:
pawn Код:
#if defined _Vehicles_included
    #endinput
#endif
#define _Vehicles_included

forward LoadVehicles();

public LoadVehicles()
{
    AddStaticVehcile(blahblahblah);
     AddStaticVehicle(blahblahblah);
    return 1;
}
Then under OnGameModeInit I Just Put LoadVehicles(); and #include <Vehicles> at the top of the script

I also do the same with objects because objects/vehicles take up alot of lines in a script and get annoying
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)