MySQL Car System no saving.
#5

And use this SaveVehicle stock
pawn Code:
SaveVehicles()
{      
        for(new v = 0; v < MAX_VEHICLES; v++)if(IsValidVehicle(v)) SaveVehicle(v);
}
You forgot to write IsValidVehicle(v)
If u don't do this then it will save 2000 vehicles in database with coords 0.0 0.0 0.0 and thus will load 2000 vehicles at those coords
And if there is any other command for creating vehicle or you create vehicle with AddStaticVehicle OnGameModeInit OR if u create vehicle using a FS then this system will bug, this system is only valid if u create cars using createveh command
Reply


Messages In This Thread
MySQL Car System no saving. - by Lynn - 18.01.2015, 21:42
Re: MySQL Car System no saving. - by CoaPsyFactor - 18.01.2015, 23:27
Re: MySQL Car System no saving. - by Lynn - 19.01.2015, 00:30
Re: MySQL Car System no saving. - by CoaPsyFactor - 19.01.2015, 02:02
Re: MySQL Car System no saving. - by BroZeus - 19.01.2015, 07:15
Re: MySQL Car System no saving. - by CoaPsyFactor - 19.01.2015, 08:28

Forum Jump:


Users browsing this thread: 1 Guest(s)