Posts: 527
Threads: 54
Joined: May 2013
hi guys i added this vehicle ownership system into my script but the issue is everytime i make a vehicle and the dealership it does not save when i reset the server. any ideas??
But from what its saying its saved and it creates the files into Dealership in scriptfiles & vehicles . really its not even saving the vehicles even tho it says it
https://sampforum.blast.hk/showthread.php?tid=276887
Posts: 233
Threads: 62
Joined: Mar 2013
Reputation:
0
do you have all the required includes at the latest versions
Posts: 527
Threads: 54
Joined: May 2013
yea it makes the files and stuff .ini files but it does not save the vehicles this only happens when i reset the server
Posts: 233
Threads: 62
Joined: Mar 2013
Reputation:
0
try recompiling the script
Posts: 527
Threads: 54
Joined: May 2013
already done that am going to try and see if it saves on the filterscript.
Posts: 527
Threads: 54
Joined: May 2013
alright tested it as a filterscript everything works great there is only one thing i cant get is this public filterscriptexit
so okay if i wanted to add this on my gamemode and not as a filterscript were should i add all this
ino is public OnFilterScriptExit() would it be like ongamemodeexit
??
Код:
public OnFilterScriptExit()
{
KillTimer(maintimer);
KillTimer(speedotimer);
KillTimer(savetimer);
//TextDrawDestroy(SpeedoBox);
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
OnPlayerDisconnect(i, 1);
}
}
for(new i=1; i < MAX_DVEHICLES; i++)
{
if(VehicleCreated[i])
{
DestroyVehicle(VehicleID[i]);
if(VehicleCreated[i] == VEHICLE_DEALERSHIP)
{
Delete3DTextLabel(VehicleLabel[i]);
}
}
}
for(new i=1; i < MAX_DEALERSHIPS; i++)
{
if(DealershipCreated[i])
{
Delete3DTextLabel(DealershipLabel[i]);
}
}
for(new i=1; i < MAX_FUEL_STATIONS; i++)
{
if(FuelStationCreated[i])
{
Delete3DTextLabel(FuelStationLabel[i]);
}
}
print("\n------------------------------------------------");
print(" Advanced Vehicle System 1.0 Unloaded");
print("------------------------------------------------\n");
return 1;
}
Posts: 527
Threads: 54
Joined: May 2013
fixed it pal thanks alot +rep