Sames vehicles spawns two time.
#5

It can to be solved, i have solved it with a little fix:
pawn Код:
new fixDoubleVehicles;

public OnGameModeInit()
{
    fixDoubleVehicles = 0;

}

public OnPlayerConnect(playerid)
{
    fixDoubleVehicles++;
    if(fixDoubleVehicles == 1){SpawnVehicles();}else{fixDoubleVehicles--;}
}

forward SpawnVehicles();
public SpawnVehicles {
//all yours addstaticvehicles functions with all parameters
}
but i don't know why i must to do this inside of just declaring addstaticvehicles functions ongamemodeinit..
Reply


Messages In This Thread
Sames vehicles spawns two time. - by Galletziz - 05.10.2015, 22:36
Re: Sames vehicles spawns two time. - by Crystallize - 05.10.2015, 22:46
Re: Sames vehicles spawns two time. - by Galletziz - 05.10.2015, 22:49
Re: Sames vehicles spawns two time. - by StackedPizza - 05.10.2015, 23:13
Re: Sames vehicles spawns two time. - by Galletziz - 05.10.2015, 23:18

Forum Jump:


Users browsing this thread: 2 Guest(s)