14.01.2013, 02:00
(
Последний раз редактировалось I3Psychedelic; 14.01.2013 в 03:33.
)
Ey !
I get these errors
Lines
The weird thing is I used PlayerInfo and pGuns like 29105901259 times in this script , never had one error .
now .... -__-
I get these errors
pawn Код:
(30370) : error 032: array index out of bounds (variable "PlayerInfo")
(30371) : error 032: array index out of bounds (variable "PlayerInfo")
(30396) : error 032: array index out of bounds (variable "PlayerInfo")
(30397) : error 032: array index out of bounds (variable "PlayerInfo")
pawn Код:
new GunsFile[256];
format(GunsFile, sizeof(GunsFile), "weapons/%s.ini", GetPlayerNameEx(playerid));
if (!dini_Exists(GunsFile))
{
dini_Create(GunsFile);
dini_IntSet(GunsFile, "Weapon1",PlayerInfo[playerid][pGuns][1] = 0);
dini_IntSet(GunsFile, "Weapon1a",PlayerInfo[playerid][pGunsAmmo][1] = 0);
dini_IntSet(GunsFile, "Weapon2",PlayerInfo[playerid][pGuns][2] = 0);
dini_IntSet(GunsFile, "Weapon2a",PlayerInfo[playerid][pGunsAmmo][2] = 0);
dini_IntSet(GunsFile, "Weapon3",PlayerInfo[playerid][pGuns][3] = 0);
dini_IntSet(GunsFile, "Weapon3a",PlayerInfo[playerid][pGunsAmmo][3] = 0);
dini_IntSet(GunsFile, "Weapon4",PlayerInfo[playerid][pGuns][4] = 0);
dini_IntSet(GunsFile, "Weapon4a",PlayerInfo[playerid][pGunsAmmo][4] = 0);
dini_IntSet(GunsFile, "Weapon5",PlayerInfo[playerid][pGuns][5] = 0);
dini_IntSet(GunsFile, "Weapon5a",PlayerInfo[playerid][pGunsAmmo][5] = 0);
dini_IntSet(GunsFile, "Weapon6",PlayerInfo[playerid][pGuns][6] = 0);
dini_IntSet(GunsFile, "Weapon6a",PlayerInfo[playerid][pGunsAmmo][6] = 0);
dini_IntSet(GunsFile, "Weapon7",PlayerInfo[playerid][pGuns][7] = 0);
dini_IntSet(GunsFile, "Weapon7a",PlayerInfo[playerid][pGunsAmmo][7] = 0);
dini_IntSet(GunsFile, "Weapon8",PlayerInfo[playerid][pGuns][8] = 0);
dini_IntSet(GunsFile, "Weapon8a",PlayerInfo[playerid][pGunsAmmo][8] = 0);
dini_IntSet(GunsFile, "Weapon9",PlayerInfo[playerid][pGuns][9] = 0);
dini_IntSet(GunsFile, "Weapon9a",PlayerInfo[playerid][pGunsAmmo][9] = 0);
dini_IntSet(GunsFile, "Weapon10",PlayerInfo[playerid][pGuns][10] = 0);
dini_IntSet(GunsFile, "Weapon10a",PlayerInfo[playerid][pGunsAmmo][10] = 0);
dini_IntSet(GunsFile, "Weapon11",PlayerInfo[playerid][pGuns][11] = 0);
dini_IntSet(GunsFile, "Weapon11a",PlayerInfo[playerid][pGunsAmmo][11] = 0);
dini_IntSet(GunsFile, "Weapon12",PlayerInfo[playerid][pGuns][12] = 0);
dini_IntSet(GunsFile, "Weapon12a",PlayerInfo[playerid][pGunsAmmo][12] = 0);
}else{
PlayerInfo[playerid][pGuns][1] = dini_Int(GunsFile,"Weapon1");
PlayerInfo[playerid][pGunsAmmo][1] = dini_Int(GunsFile,"Weapon1a");
PlayerInfo[playerid][pGuns][2] = dini_Int(GunsFile,"Weapon2");
PlayerInfo[playerid][pGunsAmmo][2] = dini_Int(GunsFile,"Weapon2a");
PlayerInfo[playerid][pGuns][3] = dini_Int(GunsFile,"Weapon3");
PlayerInfo[playerid][pGunsAmmo][3] = dini_Int(GunsFile,"Weapon3a");
PlayerInfo[playerid][pGuns][4] = dini_Int(GunsFile,"Weapon4");
PlayerInfo[playerid][pGunsAmmo][4] = dini_Int(GunsFile,"Weapon4a");
PlayerInfo[playerid][pGuns][5] = dini_Int(GunsFile,"Weapon5");
PlayerInfo[playerid][pGunsAmmo][5] = dini_Int(GunsFile,"Weapon5a");
PlayerInfo[playerid][pGuns][6] = dini_Int(GunsFile,"Weapon6");
PlayerInfo[playerid][pGunsAmmo][6] = dini_Int(GunsFile,"Weapon6a");
PlayerInfo[playerid][pGuns][7] = dini_Int(GunsFile,"Weapon7");
PlayerInfo[playerid][pGunsAmmo][7] = dini_Int(GunsFile,"Weapon7a");
PlayerInfo[playerid][pGuns][8] = dini_Int(GunsFile,"Weapon8");
PlayerInfo[playerid][pGunsAmmo][8] = dini_Int(GunsFile,"Weapon8a");
PlayerInfo[playerid][pGuns][9] = dini_Int(GunsFile,"Weapon9");
PlayerInfo[playerid][pGunsAmmo][9] = dini_Int(GunsFile,"Weapon9a");
PlayerInfo[playerid][pGuns][10] = dini_Int(GunsFile,"Weapon10");
PlayerInfo[playerid][pGunsAmmo][10] = dini_Int(GunsFile,"Weapon10a");
PlayerInfo[playerid][pGuns][11] = dini_Int(GunsFile,"Weapon11");
PlayerInfo[playerid][pGunsAmmo][11] = dini_Int(GunsFile,"Weapon11a");
PlayerInfo[playerid][pGuns][12] = dini_Int(GunsFile,"Weapon12");
PlayerInfo[playerid][pGunsAmmo][12] = dini_Int(GunsFile,"Weapon12a");
}
The weird thing is I used PlayerInfo and pGuns like 29105901259 times in this script , never had one error .
now .... -__-