I have some errors when I open my samp-server.exe
#1

[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 71 past array upper bound 70
[debug] AMX backtrace:
[debug] #0 00102ff4 in public LoadProperty () from tesrt.amx
[debug] #1 001113d4 in public L_AFK_OnGM () from tesrt.amx
[debug] #2 native CallLocalFunction () from samp-server.exe
[debug] #3 0000f1f4 in public zcmd_OnGameModeInit () from tesrt.amx
[debug] #4 native CallLocalFunction () from samp-server.exe
[debug] #5 000089b8 in public SSCANF_OnGameModeInit () from tesrt.amx
[debug] #6 00002d20 in public Itter_OnGameModeInit () from tesrt.amx
[debug] #7 native CallLocalFunction () from samp-server.exe
[debug] #8 00001ff0 in public ScriptInit_OnGameModeInit () from tesrt.amx
[debug] #9 00000fd0 in public PZone_OnGameModeInit () from tesrt.amx
[debug] #10 native CallLocalFunction () from samp-server.exe
[debug] #11 00000cb8 in public OnGameModeInit () from tesrt.amx
There are the errors ! Please someone can help me how to solve this ?
I don't know ! Please !
Thank you .
Reply
#2

Can you post LoadProperty function?
Reply
#3

public LoadProperty()
{
new result[100],index = 0;
mysql_query(SQL,"SELECT * FROM `houses` ORDER BY `houses`.`ID` ASC");
mysql_store_result();
while(mysql_retrieve_row())
{
housess++;
index++;
new i = index;
mysql_get_field("ID", result); HouseInfo[i][hID] = strval(result);
mysql_get_field("Entrancex", result); HouseInfo[i][hEntrancex] = floatstr(result);
mysql_get_field("Entrancey", result); HouseInfo[i][hEntrancey] = floatstr(result);
mysql_get_field("Entrancez", result); HouseInfo[i][hEntrancez] = floatstr(result);
mysql_get_field("Exitx", result); HouseInfo[i][hExitx] = floatstr(result);
mysql_get_field("Exity", result); HouseInfo[i][hExity] = floatstr(result);
mysql_get_field("Exitz", result); HouseInfo[i][hExitz] = floatstr(result);
mysql_get_field("Owner", result); strmid(HouseInfo[i][hOwner], result, 0, 32, 32);
mysql_get_field("Discription", result); strmid(HouseInfo[i][hDiscription], result, 0, 24, 24);
mysql_get_field("Value", result); HouseInfo[i][hValue] = strval(result);
mysql_get_field("Hel", result); HouseInfo[i][hHel] = strval(result);
mysql_get_field("Arm", result); HouseInfo[i][hArm] = strval(result);
mysql_get_field("Interior", result); HouseInfo[i][hInterior] = strval(result);
mysql_get_field("Lockk", result); HouseInfo[i][hLock] = strval(result);
mysql_get_field("Owned", result); HouseInfo[i][hOwned] = strval(result);
mysql_get_field("Rent", result); HouseInfo[i][hRent] = strval(result);
mysql_get_field("Rentabil", result); HouseInfo[i][hRentabil] = strval(result);
mysql_get_field("Takings", result); HouseInfo[i][hTakings] = strval(result);
mysql_get_field("Level", result); HouseInfo[i][hLevel] = strval(result);
mysql_get_field("Virtual", result); HouseInfo[i][hVirtual] = strval(result);
mysql_get_field("Licitatie", result); HouseInfo[i][hLicitatie] = strval(result);
}
mysql_free_result();
printf("Houses: %d", index);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)