Salut, am vazut in logurile serverului urmatoarele erori:
[16:41:50] [debug] Run time error 4: "Array index out of bounds"
[16:41:50] [debug] Accessing element at negative index -1
[16:41:50] [debug] AMX backtrace:
[16:41:50] [debug] #0 0020bb6c in ?? (... <5 arguments>) at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn:12113
[16:41:50] [debug] #1 0003321c in public OnDialogResponse (playerid=2, dialogid=86, response=1, listitem=-1, inputtext[]=@032980ac "#. Name") at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI\y_hooks/impl.inc:2273
Linia 12113 este aceasta: format(sName[playerid], 256, Selected[playerid][listitem]); si face parte din acest dialog de mai jos.
case DIALOG_MEMBERS: {
if(!response) return true;
if(PlayerInfo[playerid][pRank] < 6) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de rank 6+ pentru a putea merge mai departe!");
new szQuery[256];
format(sName[playerid], 256, Selected[playerid][listitem]);
format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `name`='%s'", sName[playerid]);
new Cache: result = mysql_query(SQL, szQuery);
cache_get_field_content(0, "Rank", string);
new rank = strval(string);
if(rank == 7) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu se poate modifica ceva unui lider!");
cache_delete(result);
format(string, sizeof(string), "Member: %s", sName[playerid]);
ShowPlayerDialog(playerid, DIALOG_MEMBERS+1, DIALOG_STYLE_LIST, string, "Raport\nRank\nFaction warn\nUn faction warn\nUninvite", "Ok", "Back");
}
Linia 9286 este aceasta: new Float:vehx, Float:vehy, Float:vehz, idd = PlayerInfo[playerid][pCarKey][listitem]; si face parte din dialogul de mai jos.
[18:01:54] [debug] Run time error 4: "Array index out of bounds"
[18:01:54] [debug] Accessing element at negative index -1
[18:01:54] [debug] AMX backtrace:
[18:01:54] [debug] #0 001d7830 in ?? (... <5 arguments>) at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn:9286
[18:01:54] [debug] #1 0003321c in public OnDialogResponse (playerid=2, dialogid=748, response=1, listitem=-1, inputtext[]=@032980ac "(Occupied) Monster") at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI\y_hooks/impl.inc:2273
Linia 12360 este aceasta: new stringg[2000], idd = PlayerInfo[playerid][pCarKey][listitem]; si face parte din dialogul de mai jos.
case DIALOG_GARAGE: {
if(!response) return true;
new stringg[2000], idd = PlayerInfo[playerid][pCarKey][listitem];
listitemm[playerid] = idd;
strcat(stringg,"Option\tMore details.\n");
strcat(stringg,"Vehicle Info\tSee vehicle details.\n");
strcat(stringg,"Find Vehicle\tLocate your vehicle.\n");
strcat(stringg,"Tow vehicle\tRespawn your vehicle.\n");
if(CarInfo[idd][Spawned] != 0) strcat(stringg,"Despawn\tDestroy your vehicle.\n");
else strcat(stringg,"Spawn\tSpawn your vehicle.\n");
strcat(stringg,"Debug\tSpawn your vehicle in another locations.\n");
strcat(stringg,"Sell vehicle\tSell vehicle to Dealership.\n");
strcat(stringg,"Buy insurance\tBuy insurance points.\n");
strcat(stringg, strlen(CarInfo[idd][cText]) < 3 ? "Upgrade To VIP Vehicle\t{51dd32}300 premium points.\n" : "Upgrade To VIP Vehicle\t{cf2424}300 premium points.\n");
strcat(stringg, CarInfo[idd][cVip] != 1 ? "Upgrade To VIP PLUS\t{51dd32}500 premium points.\n" : "Teleport Vehicle\t{32e4ea}Get vehicle to you.\n");
strcat(stringg, !CarInfo[idd][cRainBow] ? "Upgrade To rainbow vehicle\t{51dd32}300 premium points.\n" : "Upgrade to rainbow vehicle\t{cf2424}300 premium points.\n");
strcat(stringg,"{FF0000}Remove tuning\t{FFFFFF}Remove tuning from your vehicle.");
if(CarInfo[idd][Confiscated] == 1) strcat(stringg, "\n{FFFFFF}Pay fine to TTC.");
ShowPlayerDialog(playerid, DIALOG_GARAGE1, DIALOG_STYLE_TABLIST_HEADERS, "Options", stringg, "Select", "Cancel");
}
[19:14:12] [debug] Accessing element at negative index -1
[19:14:12] [debug] AMX backtrace:
[19:14:12] [debug] #0 00210f00 in ?? (... <5 arguments>) at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn:12360
[19:14:12] [debug] #1 0003321c in public OnDialogResponse (playerid=1, dialogid=82, response=1, listitem=-1, inputtext[]=@032980ac "Vehicul") at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI\y_hooks/impl.inc:2273
Question
TheGodfather
Salut, am vazut in logurile serverului urmatoarele erori:
[16:41:50] [debug] Run time error 4: "Array index out of bounds"
[16:41:50] [debug] Accessing element at negative index -1
[16:41:50] [debug] AMX backtrace:
[16:41:50] [debug] #0 0020bb6c in ?? (... <5 arguments>) at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn:12113
[16:41:50] [debug] #1 0003321c in public OnDialogResponse (playerid=2, dialogid=86, response=1, listitem=-1, inputtext[]=@032980ac "#. Name") at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI\y_hooks/impl.inc:2273
Linia 12113 este aceasta: format(sName[playerid], 256, Selected[playerid][listitem]); si face parte din acest dialog de mai jos.
case DIALOG_MEMBERS: {
if(!response) return true;
if(PlayerInfo[playerid][pRank] < 6) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de rank 6+ pentru a putea merge mai departe!");
new szQuery[256];
format(sName[playerid], 256, Selected[playerid][listitem]);
format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `name`='%s'", sName[playerid]);
new Cache: result = mysql_query(SQL, szQuery);
cache_get_field_content(0, "Rank", string);
new rank = strval(string);
if(rank == 7) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu se poate modifica ceva unui lider!");
cache_delete(result);
format(string, sizeof(string), "Member: %s", sName[playerid]);
ShowPlayerDialog(playerid, DIALOG_MEMBERS+1, DIALOG_STYLE_LIST, string, "Raport\nRank\nFaction warn\nUn faction warn\nUninvite", "Ok", "Back");
}
Linia 9286 este aceasta: new Float:vehx, Float:vehy, Float:vehz, idd = PlayerInfo[playerid][pCarKey][listitem]; si face parte din dialogul de mai jos.
case DIALOG_FINDCAR: {
if(!response)
return true;
new Float:vehx, Float:vehy, Float:vehz, idd = PlayerInfo[playerid][pCarKey][listitem];
GetVehiclePos(CarInfo[idd][Spawned], vehx, vehy, vehz);
SetPlayerCheckpointEx(playerid, vehx, vehy, vehz, 3.0);
CP[playerid] = 53;
}
[18:01:54] [debug] Run time error 4: "Array index out of bounds"
[18:01:54] [debug] Accessing element at negative index -1
[18:01:54] [debug] AMX backtrace:
[18:01:54] [debug] #0 001d7830 in ?? (... <5 arguments>) at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn:9286
[18:01:54] [debug] #1 0003321c in public OnDialogResponse (playerid=2, dialogid=748, response=1, listitem=-1, inputtext[]=@032980ac "(Occupied) Monster") at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI\y_hooks/impl.inc:2273
Linia 12360 este aceasta: new stringg[2000], idd = PlayerInfo[playerid][pCarKey][listitem]; si face parte din dialogul de mai jos.
case DIALOG_GARAGE: {
if(!response) return true;
new stringg[2000], idd = PlayerInfo[playerid][pCarKey][listitem];
listitemm[playerid] = idd;
strcat(stringg,"Option\tMore details.\n");
strcat(stringg,"Vehicle Info\tSee vehicle details.\n");
strcat(stringg,"Find Vehicle\tLocate your vehicle.\n");
strcat(stringg,"Tow vehicle\tRespawn your vehicle.\n");
if(CarInfo[idd][Spawned] != 0) strcat(stringg,"Despawn\tDestroy your vehicle.\n");
else strcat(stringg,"Spawn\tSpawn your vehicle.\n");
strcat(stringg,"Debug\tSpawn your vehicle in another locations.\n");
strcat(stringg,"Sell vehicle\tSell vehicle to Dealership.\n");
strcat(stringg,"Buy insurance\tBuy insurance points.\n");
strcat(stringg, strlen(CarInfo[idd][cText]) < 3 ? "Upgrade To VIP Vehicle\t{51dd32}300 premium points.\n" : "Upgrade To VIP Vehicle\t{cf2424}300 premium points.\n");
strcat(stringg, CarInfo[idd][cVip] != 1 ? "Upgrade To VIP PLUS\t{51dd32}500 premium points.\n" : "Teleport Vehicle\t{32e4ea}Get vehicle to you.\n");
strcat(stringg, !CarInfo[idd][cRainBow] ? "Upgrade To rainbow vehicle\t{51dd32}300 premium points.\n" : "Upgrade to rainbow vehicle\t{cf2424}300 premium points.\n");
strcat(stringg,"{FF0000}Remove tuning\t{FFFFFF}Remove tuning from your vehicle.");
if(CarInfo[idd][Confiscated] == 1) strcat(stringg, "\n{FFFFFF}Pay fine to TTC.");
ShowPlayerDialog(playerid, DIALOG_GARAGE1, DIALOG_STYLE_TABLIST_HEADERS, "Options", stringg, "Select", "Cancel");
}
[19:14:12] [debug] Accessing element at negative index -1
[19:14:12] [debug] AMX backtrace:
[19:14:12] [debug] #0 00210f00 in ?? (... <5 arguments>) at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn:12360
[19:14:12] [debug] #1 0003321c in public OnDialogResponse (playerid=1, dialogid=82, response=1, listitem=-1, inputtext[]=@032980ac "Vehicul") at C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI\y_hooks/impl.inc:2273
8 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now