Cars not spawning
#1

Prenty simple problem but i have no answer to it i have created my cars and added them to the script but they are not spawning when i use my host but they do when i self hostany ideas?



AddStaticVehicle(468,-699.9470,944.3683,12.0051,359.5407,96,7); //
AddStaticVehicle(468,-702.5610,944.6968,12.0454,359.1151,96,40); / AddStaticVehicle(468,-705.0736,944.4593,12.0834,358.8170,96,40); //
Reply
#2

Did you put them in OnGameModeInit() ?
Reply
#3

Yes like Drebin said they must be under On GameModeInIt()
Example:

pawn Код:
public OnGameModeInIt()
{
AddStaticVehicle(468,-699.9470,944.3683,12.0051,359.5407,96,7); //
AddStaticVehicle(468,-702.5610,944.6968,12.0454,359.1151,96,40); //
AddStaticVehicle(468,-705.0736,944.4593,12.0834,358.8170,96,40); //
//Your vehicle Coords go here
return 1;
}
Reply
#4

pawn Код:
public OnGameModeInit()
{
    AddStaticVehicle(468,-699.9470,944.3683,12.0051,359.5407,96,7); //
    AddStaticVehicle(468,-702.5610,944.6968,12.0454,359.1151,96,40); //
    AddStaticVehicle(468,-705.0736,944.4593,12.0834,358.8170,96,40); //
    //Your vehicle Coords go here
    return 1;
}
Reply
#5

I did something but not sure what but i fixed the problem.

Many thanks for your help.
Reply
#6

pawn Код:
public OnGameModeInit()
{
    AddStaticVehicle(468,-699.9470,944.3683,12.0051,359.5407,96,7); //
    AddStaticVehicle(468,-702.5610,944.6968,12.0454,359.1151,96,40); //
    AddStaticVehicle(468,-705.0736,944.4593,12.0834,358.8170,96,40); //
    //Your vehicle Coords go here
    return 1;
}
Always put a ; behind the return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)