03.09.2017, 13:34
hello all im making my own game mode and so for testing i made a car spawn code. my gamemode used to work correctly but apparently not now.
i changed my vps plan and my machine from where i get it (doesnt really matter i think)
i installed same stuff as normal its working while normally in game but when i spawn a car i lose connection to server and i see server is crashed. i installed crashdetect so see what is the problem but heres the funny line.
i neither have any iter in my gamemore nor a public onfilterscriptinit. i dont even have any filterscript in my server.cfg file.
code that crashes:
anybody has any idea?
PS: I couldnt get the game to crash randomly so i dont know what causes random crashes too yet.
i changed my vps plan and my machine from where i get it (doesnt really matter i think)
i installed same stuff as normal its working while normally in game but when i spawn a car i lose connection to server and i see server is crashed. i installed crashdetect so see what is the problem but heres the funny line.
Код:
Server crashed while executing gm.amx [13:14:19] [debug] AMX backtrace: [13:14:19] [debug] #0 ffffffff in public Iter_OnFilterScriptInit () from gm.amx
code that crashes:
Код:
CMD:createv(playerid,params[]) { new vehid,Float:xx,Float:yy,Float:zz; if(sscanf(params,"i",vehid)) return 0; GetPlayerPos(playerid,xx,yy,zz); new vid = CreateVehicle(vehid,xx,yy,zz,0,0,0,-1); vInfo[vid][vFuel]=88; return 1; }
PS: I couldnt get the game to crash randomly so i dont know what causes random crashes too yet.