16.02.2013, 10:00
Код:
[12:14:00] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [12:14:00] [debug] Stack pointer (STK) is 0x17605C, heap pointer (HEA) is 0x176024 [12:14:00] [debug] AMX backtrace: [12:14:00] [debug] #0 001b4f6c in public OnVehicleSpawn () from CHFR.amx [12:14:00] [debug] #1 native SetVehicleToRespawn () [0046e790] from samp-server.exe [12:14:00] [debug] #2 001b4f6c in ?? () from CHFR.amx //From 0 to 900 -.-" [12:14:00] [debug] #890 001b4f6c in public OnVehicleSpawn () from CHFR.amx [12:14:00] [debug] #891 native SetVehicleToRespawn () [0046e790] from samp-server.exe [12:14:00] [debug] #892001b4f6c in ?? () from CHFR.amx [12:14:00] [debug] #893 00000008 in public cmd_rtc () from CHFR.amx [12:14:00] [debug] #894 native CallLocalFunction () [00471c30] from samp-server.exe [12:14:00] [debug] #895 0000fb28 in ?? () from CHFR.amx [12:14:00] [debug] #896 00005bc4 in public OnPlayerCommandText () from CHFR.amx
CMD_RTC
Код:
CMD:rtc(playerid,params[]) { new sendername[MAX_PLAYER_NAME], string[128]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,Crvena,"{FFFFFF}[{F81414}CHFR{FFFFFF}!]{FFFFFF} Admini samo!"); if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, Crvena, "{B3B3B3}({FF0000}Greska!{B3B3B3}){FFFFFF}Niste u vozilu!"); SetVehicleToRespawn(GetPlayerVehicleID(playerid)); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string),"[SaboCMD][RESPAWN] Admin %s je Respawnao Vozilo!", sendername); PorukaAdminu(Zlatna, string); TogglePlayerControllable(playerid,1); return 1; }
Код:
public OnVehicleSpawn(vehicleid) { SetVehicleNumberPlate(vehicleid,"FreeRoam"); return 1; }