22.10.2014, 20:16
pawn Код:
stock LoadGangs()
{
for(new i = 1; i < MAX_GANGS; i++)
{
format(GangStat[i][GangFile], 60, "Gangs/Gang %d.ini", i);
if(fexist(GangStat[i][GangFile]))
{
//Erros dessa linha \/
GangStat[i][Leader] = DOF2_GetString(GangStat[i][GangFile], "Leader");
GangStat[i][GangName] = DOF2_GetString(GangStat[i][GangFile], "Name");
GangStat[i][TAG] = DOF2_GetString(GangStat[i][GangFile], "TAG");
GangStat[i][Rank1] = DOF2_GetString(GangStat[i][GangFile], "Rank1");
GangStat[i][Rank2] = DOF2_GetString(GangStat[i][GangFile], "Rank2");
GangStat[i][Rank3] = DOF2_GetString(GangStat[i][GangFile], "Rank3");
GangStat[i][Rank4] = DOF2_GetString(GangStat[i][GangFile], "Rank4");
GangStat[i][Rank5] = DOF2_GetString(GangStat[i][GangFile], "Rank5");
GangStat[i][Rank6] = DOF2_GetString(GangStat[i][GangFile], "Rank6");
//Atй essa linha /\
GangStat[i][Members] = DOF2_GetInt(GangStat[i][GangFile], "Members");
GangStat[i][Color] = DOF2_GetInt(GangStat[i][GangFile], "Color");
}
}
return 1;
}
pawn Код:
error 047: array sizes do not match, or destination array is too small