25.11.2016, 19:25
Alright so uhm I am not sure why but why the fuck is this working lol
I have opened 3 brackets, closed only 2, Im not getting any errors for some odd reason. When I try to close 3 of them I do get an error saying "Umatching bracket"
I have opened 3 brackets, closed only 2, Im not getting any errors for some odd reason. When I try to close 3 of them I do get an error saying "Umatching bracket"
pawn Code:
stock createFactionRank(faction_id, rank_name[], power) { //first bracket
for(new = 0; i< MAX_FACTION_RANKS; i++) { //second
if(rankInfo[i][fr_Valid] == 0) { //third
rankInfo[i][fr_ID] = i;
rankInfo[i][fr_Valid] = 1;
format(rankInfo[i][fr_Name],sizeof(rankInfo[i][fr_Name]),"%s",rank_name);
rankInfo[i][fr_Power] = power;
new query[128];
mysql_format(mysql,query,sizeof(query),"INSERT INTO faction_rank (`faction_id`,`rank_name`,`faction_rank_power`) VALUES (%d,'%e',%d)",faction_id, rank_name, power);
mysql_tquery(mysql,query,"");
break;
} //first closing
} //second second