server crashing when theres a vehicle around a player - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: server crashing when theres a vehicle around a player (
/showthread.php?tid=640508)
server crashing when theres a vehicle around a player -
grymtn - 03.09.2017
hello all im trying to get something to work. First of all i want to remind that this gm is working properly while being run on windows. but however it crsahes when theres car around a player on linux. my vps is linux and i dont want to change that(i cant even if i want to and i tried several linux distributions already. always same problem).
here is the code i use to spawn vehicle:
Код:
CMD:spawnvcar(playerid)
{
new Float:PlayerCPos[3];
GetPlayerPos(playerid, PlayerCPos[0], PlayerCPos[1], PlayerCPos[2]);
new carid = CreateVehicle(411, PlayerCPos[0], PlayerCPos[1], PlayerCPos[2], 0, 0, 0, -1);
vInfo[carid][vFuel]=88;
PutPlayerInVehicle(playerid, carid, 0);
return 1;
}
server log says:
Код:
[16:17:52] [debug] Server crashed while executing SouthStateRolePlayzero.amx
[16:17:52] [debug] AMX backtrace:
[16:17:52] [debug] #0 ffffffff in public OnEnterExitModShop (... <2 arguments>) at <unknown file>:0(this used to give another include error and i removed that include now it turned in to another error)
[16:17:52] [debug] #1 native PutPlayerInVehicle () from samp03svr
[16:17:52] [debug] #2 0007aff0 in public cmd_spawnvcar (playerid=0, ... <1 argument>) at C:\Users\PC\Desktop\samp\GTA United Roleplay\gamemodes\SouthStateRolePlayzero.pwn:6642
[16:17:52] [debug] #3 native CallLocalFunction () from samp03svr
[16:17:52] [debug] #4 000022c8 in public OnPlayerCommandText (playerid=0, cmdtext[]=@001bd534 "/spawnvcar") at C:\Users\PC\Desktop\samp\pawno\include\zcmd.inc:104
anyone has any idea?
PS: I tried spawning a vehicle far away. server doesnt crash as long as a player doesnt get close to it.
Re: server crashing when theres a vehicle around a player -
BadJih - 03.09.2017
the problem is in the filtrescript (Southstateroleplayzero.amx )
Re: server crashing when theres a vehicle around a player -
grymtn - 03.09.2017
that is my gamemode not my filtersript. i dont have any filterscripts
Re: server crashing when theres a vehicle around a player -
BadJih - 03.09.2017
Quote:
Originally Posted by grymtn
that is my gamemode not my filtersript. i dont have any filterscripts
|
oh sorry i didnt see all the log
Re: server crashing when theres a vehicle around a player -
grymtn - 03.09.2017
its okay and its fixed btw i removed another include that i dont even own. idk where it came from but it was working before as i said. thank you for your time