03.09.2017, 16:37
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:
server log says:
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.
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; }
Код:
[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
PS: I tried spawning a vehicle far away. server doesnt crash as long as a player doesnt get close to it.