Primesc eroarea asta cand folosesc o comanda pe un server de pe linux , dar nu de pe windows
[18:10:22] [debug] Run time error 4: "Array index out of bounds"
[18:10:22] [debug] Accessing element at negative index -1
[18:10:22] [debug] AMX backtrace:
[18:10:22] [debug] #0 0003c374 in public OnPlayerCommandText (0, 608752) from CarSystem.amx
Comanda care da eroarea :
else if(strcmp(x_nr,"panel",true) == 0)
{
new stringA[250],stringB[250],stringC[250],stringD[250];
new carkey1 = PlayerInfo[playerid][pPcarkey];
new carkey2 = PlayerInfo[playerid][pPcarkey2];
new carkey3 = PlayerInfo[playerid][pPcarkey3];
format(stringA,sizeof(stringB),"{FFAA00}1: {FFFFFF}%s", CarInfo[carkey1][cDescription]),
format(stringB,sizeof(stringB),"{FFAA00}2: {FFFFFF}%s", CarInfo[carkey2][cDescription]),
format(stringC,sizeof(stringB),"{FFAA00}3: {FFFFFF}%s", CarInfo[carkey3][cDescription]),
format(stringD,sizeof(stringD)," %s \n %s \n %s",stringA,stringB,stringC);
ShowPlayerDialog(playerid, DIALOG_CARLIST14, DIALOG_STYLE_LIST, "Cars", stringD, "Exit", "");
}
Comanda merge perfect pe un server de pe windows. Ce as putea face?