SA-MP Error 08: Heap Underflow. -
Vince123 - 29.03.2015
Hey guys. This is the problem I get when I try to run the server. It shows:
[21:57:32] [debug] #0 00000008 in public OnLoadFurniture () from gamemode.amx
[21:57:32] [debug] Run time error 8: "Heap underflow"
[21:57:32] [debug] Heap pointer (HEA) is 0x486CBA, heap bottom (HLW) is 0x8179F0
[21:57:32] [debug] AMX backtrace:
[21:57:32] [debug] #0 00000008 in public RefuelCheck () from gamemode.amx
[21:57:33] [debug] Run time error 8: "Heap underflow"
[21:57:33] [debug] Heap pointer (HEA) is 0x486CBA, heap bottom (HLW) is 0x8179F0
[21:57:33] [debug] AMX backtrace:
[21:57:33] [debug] #0 00000008 in public OnLoadStorage () from gamemode.amx
[21:57:33] [debug] Run time error 8: "Heap underflow"
[21:57:33] [debug] Heap pointer (HEA) is 0x486CBA, heap bottom (HLW) is 0x8179F0
[21:57:33] [debug] AMX backtrace:
[21:57:33] [debug] #0 00000008 in public OnLoadFurniture () from gamemode.amx
[21:57:33] [debug] Run time error 8: "Heap underflow"
[21:57:33] [debug] Heap pointer (HEA) is 0x486CBA, heap bottom (HLW) is 0x8179F0
[21:57:33] [debug] AMX backtrace:
[21:57:33] [debug] #0 00000008 in public OnLoadStorage () from gamemode.amx
[21:57:33] [debug] Run time error 8: "Heap underflow"
[21:57:33] [debug] Heap pointer (HEA) is 0x486CBA, heap bottom (HLW) is 0x8179F0
[21:57:33] [debug] AMX backtrace:
[21:57:33] [debug] #0 00000008 in public OnLoadFurniture () from gamemode.amx
[21:57:33] [debug] Run time error 8: "Heap underflow"
[21:57:33] [debug] Heap pointer (HEA) is 0x486CBA, heap bottom (HLW) is 0x8179F0
[21:57:33] [debug] AMX backtrace:
[21:57:33] [debug] #0 00000008 in public OnLoadStorage () from gamemode.amx
[21:57:33] [debug] Run time error 8: "Heap underflow"
[21:57:33] [debug] Heap pointer (HEA) is 0x486CBA, heap bottom (HLW) is 0x8179F0
[21:57:33] [debug] AMX backtrace:
[21:57:33] [debug] #0 00000008 in public OnLoadFurniture () from gamemode.amx
[21:57:33] [debug] Run time error 8: "Heap underflow"
[21:57:33] [debug] Heap pointer (HEA) is 0x486CBA, heap bottom (HLW) is 0x8179F0
[21:57:33] [debug] AMX backtrace:
[21:57:33] [debug] #0 00000008 in public OnLoadStorage () from gamemode.amx
[21:57:33] [debug] Run time error 8: "Heap underflow"
[21:57:33] [debug] Heap pointer (HEA) is 0x486CBA, heap bottom (HLW) is 0x8179F0
[21:57:33] [debug] AMX backtrace:
The code is:
Код:
for (new i = 0; i < MAX_HOUSES; i ++) if (HouseData[i][houseExists]) {
format(str, sizeof(str), "SELECT * FROM `housestorage` WHERE `ID` = '%d'", HouseData[i][houseID]);
mysql_function_query(g_iHandle, str, true, "OnLoadStorage", "d", i);
format(str, sizeof(str), "SELECT * FROM `furniture` WHERE `ID` = '%d'", HouseData[i][houseID]);
mysql_function_query(g_iHandle, str, true, "OnLoadFurniture", "d", i);
}
return 1;
}
Re: SA-MP Error 08: Heap Underflow. -
Crystallize - 29.03.2015
https://sampforum.blast.hk/showthread.php?tid=55261
or this (expanding)
Код:
#pragma dynamic 500000