10.07.2013, 14:31
Alright, I've recently added the crashdetect plugin due to request of my host to see if it's my server crashing or an issue on their side. I've checked my logs and I have over 1000 lines saying the same message, but I don't understand it. Here's the message it spams:
Now I figured this was something to do with OnVehicleSpawn, but I don't see an issue in my code. I'll post it up to the part of "SetVehicleToRespawn"
Well thanks in advance to anyone who replies.
EDIT:
Also I see this now aswell:
pawn Код:
0007258c in public OnVehicleSpawn () from esrp.amx
native SetVehicleToRespawn () [080ca6f0] from samp03svr
pawn Код:
public OnVehicleSpawn(vehicleid) {
new vid = vehicleid-1;
DestroyVehicle(vehicleid);
CreateVehicle(VehicleData[vid][vModel], VehicleData[vid][vCordX], VehicleData[vid][vCordY], VehicleData[vid][vCordZ], VehicleData[vid][vCordA], VehicleData[vid][vColor1], VehicleData[vid][vColor2], -1);
if(!strcmp(VehicleData[vid][vReg], "000000")) {
SetVehicleNumberPlate(vehicleid, " ");
} else {
SetVehicleNumberPlate(vehicleid, VehicleData[vid][vReg]);
}
SetVehicleToRespawn(vehicleid);
return 1;
}
EDIT:
Also I see this now aswell:
pawn Код:
Run time error 3: "Stack/heap collision (insufficient stack size)"
Stack pointer (STK) is 0x68C2A0, heap pointer (HEA) is 0x68C264