Cars not spawning -
manchestera - 15.10.2011
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); //
AW: Cars not spawning -
Drebin - 15.10.2011
Did you put them in OnGameModeInit() ?
Re: Cars not spawning -
SantarioLeone - 15.10.2011
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;
}
Re: Cars not spawning -
Kingunit - 15.10.2011
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;
}
Re: Cars not spawning -
manchestera - 15.10.2011
I did something but not sure what but i fixed the problem.
Many thanks for your help.
AW: Cars not spawning -
Drebin - 15.10.2011
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;