05.10.2015, 23:18
It can to be solved, i have solved it with a little fix:
but i don't know why i must to do this inside of just declaring addstaticvehicles functions ongamemodeinit..
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
}