forward OwnedVehicleRespawn(vehicleid);
public OwnedVehicleRespawn(vehicleid)
{
print("[DEBUG] OwnedVehicleRespawn");
VehicleInfo[vehicleid][vehicleID] = CreateVehicle(VehicleInfo[vehicleid][vModelID], VehicleInfo[vehicleid][vX], VehicleInfo[vehicleid][vY], VehicleInfo[vehicleid][vZ], VehicleInfo[vehicleid][vAngle], VehicleInfo[vehicleid][vColor1], VehicleInfo[vehicleid][vColor2], 3600, 0);
ModVehicle(VehicleInfo[vehicleid][vehicleID]);
printf("[DEBUG] Vehicle to respawn: %i", VehicleInfo[vehicleid][vehicleID]);
new count;
for(new i; i < MAX_VEHICLES; i++)
{
if(IsValidVehicle(i)) count++;
}
printf("[DEBUG] * There are %d valid spawned vehicles on this server.", count);
print("[DEBUG] OwnedVehicleRespawn Finished");
return 1;
}
[21:29:09] OnVehicleDeath
[21:29:09] Destroyed id 276
[21:29:09] OwnedVehicleRespawn
[21:29:09] NEW DEBUG --- Vehicle to respawn ID: 276 AND its variable ID: 651 --- DB ID: 651
[21:29:09] * There are 285 valid spawned vehicles on this server.
[21:29:09] OwnedVehicleRespawn Finished
[21:29:09] [debug] Server crashed due to an unknown error
[21:29:09] [debug] Native backtrace:
[21:29:09] [debug] #0 aa6dae8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[21:29:09] [debug] #1 aa6d3bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[21:29:09] [debug] #2 aa6d4dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[21:29:09] [debug] #3 aa6d5226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[21:29:09] [debug] #4 aa6daadc in ?? () from plugins/crashdetect.so
[21:29:09] [debug] #5 ab740410 in ?? ()
[21:29:09] [debug] #6 ab740430 in ?? ()
[21:29:09] [debug] #7 ab478871 in gsignal () from /lib/libc.so.6
[21:29:09] [debug] #8 ab47a14a in abort () from /lib/libc.so.6
[21:29:09] [debug] #9 ab4b8735 in ?? () from /lib/libc.so.6
[21:29:09] [debug] #10 ab4beb91 in ?? () from /lib/libc.so.6
[21:29:09] [debug] #11 ab4c12f8 in ?? () from /lib/libc.so.6
[21:29:09] [debug] #12 ab6d9df2 in _ZdlPv () from /usr/lib/libstdc++.so.6
[21:29:09] [debug] #13 ab6d9e4e in _ZdaPv () from /usr/lib/libstdc++.so.6
[21:29:09] [debug] #14 0807fbf8 in ?? () from ./samp03svr
[21:29:09] [debug] #15 0808013d in ?? () from ./samp03svr
[21:29:09] [debug] #16 08074c3a in ?? () from ./samp03svr
[21:29:09] [debug] #17 080763fe in ?? () from ./samp03svr
[21:29:09] [debug] #18 ab71eb39 in ?? () from /lib/libpthread.so.0
[21:29:09] [debug] #19 ab530c1e in clone () from /lib/libc.so.6
public OnVehicleSpawn(vehicleid)
{
printf("Vehicle %i spawned!",vehicleid);
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
print("OnVehicleDeath");
for(new i; i < MAX_SAVED_VEHICLES; i++)
{
if (vehicleid != VehicleInfo[i][vehicleID]) continue;
if (DestroyVehicle(vehicleid))
{
printf("Destroyed id %i", vehicleid);
OwnedVehicleRespawn(i);
}
else
{
printf("The vehicle %i was not destroyed", vehicleid);
}
break;
}
}
Could you try to make the system debug the vehicle IDs. perhaps it's only for a given ID that the system crashes. If you can trace what car ( as I assume it's just one ) or ID is bugging you up, you might be able to trace the problem back into that.
|
NEW DEBUG --- Vehicle to respawn ID: 276 AND its variable ID: 651 --- DB ID: 651
Thanks for your reply bud, I've attempted that in the past.
PHP код:
|
Mem: 16614660k total, 9488936k used, 7125724k free, 190412k buffers Swap: 1046520k total, 0k used, 1046520k free, 8614772k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 21952 sart 20 0 134m 81m 3484 S 4.7 0.5 6:59.38 samp03svr 2747 sart 20 0 180m 127m 3508 S 0.3 0.8 139:23.90 samp03svr |
For some reason, there are two instances of the server running, I'm guessing that could be a potential cause of bugs/glitches - I'll get that sorted and see if the crashes occur with only one instance running.
|