important-agent-12277
03/28/2023, 3:53 AMworried-lighter-82731
03/28/2023, 12:08 PM-d3 - and then see if you can get some useful pointers as to where the issue might be in your gamemode. It will no longer show ?? but perhaps a line number for you to drill down on.important-agent-12277
03/28/2023, 1:51 PMworried-lighter-82731
03/28/2023, 1:52 PM-d3 is a flag you pass in when the compiler is invoked. If you use Pawno, it would be in the build options under with these parameters. If you use VSCode, it is in your tasks.json where you call the pawncc.exe.important-agent-12277
03/28/2023, 2:36 PMimportant-agent-12277
03/28/2023, 4:04 PM[12:51:52] [debug] Long callback execution detected (hang or performance issue)
[12:51:52] [debug] AMX backtrace:
[12:51:52] [debug] #0 0000433c in DOF2_ParseFile (file[]=@002bbe08 "houses/house 1.ini", extraid=-1, bool:callback=false) at F:\SERVER\pawno\include\dof2.inc:1062
[12:51:52] [debug] #1 000029cc in DOF2_GetStringEx (file[]=@002bbe08 "houses/house 1.ini", key[]=@001ae854 "IdHouse", result[]=@002bbdac "", size=16, tag[]=@0027bedc "") at F:\SERVER\pawno\include\dof2.inc:698
[12:51:52] [debug] #2 00003764 in DOF2_GetInt (file[]=@002bbe08 "Casas/Casa 1.ini", key[]=@001ae854 "IdHouse", tag[]=@0027bedc "") at F:\SERVIDOR\pawno\include\dof2.inc:865
[12:51:52] [debug] #3 00044034 in LoadHouse (HouseID=1) at F:\SERVER\gamemodes\GM.pwn:4700
[12:51:52] [debug] #4 000130b4 in public zcmd_OnGameModeInit () at F:\SERVER\gamemodes\GM.pwn:1361
[12:51:52] [debug] #5 native CallLocalFunction () in samp-server.exe
[12:51:52] [debug] #6 00007f7c in public OnGameModeInit () at F:\SERVIDOR\pawno\include\zcmd.inc:68
The functions that were presented to me about slow loading of houses:
OnGameModeInit
new vHouse[18];
for(new i; i < MAX_HOUSES; i++)
{
format(vHouse, sizeof(vHouse), past_House, i);
if(DOF2_FileExists(vHouse))
{
LoadHouse(i);
}
}
Line 4700
stock LoadHouse(HouseID)
{
new cHouse[20];
format(cHouse, sizeof(cHouse), MAX_HOUSES, HouseID);
Houses[HouseID][Existente] = true;
Houses[HouseID][IdHouse] = DOF2_GetInt(cHouse,"IdHouse"); // Here
}flat-egg-44689
03/28/2023, 7:46 PMimportant-agent-12277
03/29/2023, 3:42 AM[03:30:04] [debug] Server crashed while executing GM.amx
[03:30:04] [debug] AMX backtrace:
[03:30:04] [debug] #0 0000006e in ?? (114, 101, 103, 117, 101, 115, 58, 32, 49, 48, ... <19 more arguments>) at F:\SERVER\pawno\include\float.inc:112
[03:30:04] [debug] #1 0000006e in public zcmd_OnGameModeInit () at F:\SERVER\pawno\include\float.inc:112
[03:30:04] [debug] #2 native CallLocalFunction () in samp03svr
[03:30:04] [debug] #3 00007f7c in ?? (58, 32, 49, 48, 0, 0, 0, 0, 0, 0, ... <18 more arguments>) at F:\SERVER\pawno\include\zcmd.inc:68
[03:30:04] [debug] #4 00000065 in public OnGameModeInit () at F:\SERVER\pawno\include\float.inc:112important-agent-12277
03/30/2023, 3:02 AMworried-lighter-82731
03/31/2023, 10:56 AMF:\SERVER\pawno\include\float.inc around line 112? It could potentially help narrow down the issueimportant-agent-12277
04/02/2023, 8:25 PMstock Float:operator*(Float:oper1, oper2)
return floatmul(oper1, float(oper2)); // line 112important-agent-12277
04/02/2023, 8:58 PM