30.10.2015, 15:31
Hello!
What's the problem?
What's the problem?
Код:
enum e_pInfo { pSQLID, pName[MAX_PLAYER_NAME+1], pPass[65], pAdmin, pEmail[321], bool:pLogged = false, pPassFail } new pInfo[MAX_PLAYERS][e_pInfo];
Код:
function:loginHandle(playerid){ new rows = cache_get_row_count(); if(rows == 0) return ShowPlayerDialog(playerid, d_login, DIALOG_STYLE_PASSWORD, "SDtH - Bejelentkezйs", "Hibбs jelszуt adtбl meg!", "Elkьld", "Kilйpйs"); pInfo[playerid][pPassFail]++; SendClientMessage(playerid, -1, "Sikeres bejelentkezйs!"); pInfo[playerid][pPassFail] = EOS; pInfo[playerid][pSQLID] = cache_get_field_content_int(0, "id"); pInfo[playerid][pAdmin] = cache_get_field_content_int(0, "pAdmin"); // 282 cache_get_field_content(0, "pName", pInfo[playerid][pName]); cache_get_field_content(0, "pEmail", pInfo[playerid][pEmail]); // 284 cache_get_field_content(0, "pPass", pInfo[playerid][pPass]); // 285 pInfo[playerid][pLogged] = true; return 1; }
Код:
C:(282) : error 032: array index out of bounds (variable "pInfo") C:(284) : error 032: array index out of bounds (variable "pInfo") C:(285) : error 032: array index out of bounds (variable "pInfo")