Couldnt fix a error.
#1

Dont know how am i getting the following errors couldnt fix it
Код:
D:\Xtreme Gaming Roleplay\gamemodes\xg-rp.pwn(1299) : error 029: invalid expression, assumed zero
With the following code where i tried to create a new faction on slot 8.
pawn Код:
format(file, sizeof(file), "factions/NG.ini");
    format(FacInfo[8][fRank0], 32, "%s", dini_Get(file, "Rank0"));
    format(FacInfo[8[fRank1], 32, "%s", dini_Get(file, "Rank1")); // In this line i got the error.
    format(FacInfo[8][fRank2], 32, "%s", dini_Get(file, "Rank2"));
    format(FacInfo[8][fRank3], 32, "%s", dini_Get(file, "Rank3"));
    format(FacInfo[8][fRank4], 32, "%s", dini_Get(file, "Rank4"));
    format(FacInfo[8][fRank5], 32, "%s", dini_Get(file, "Rank5"));
    format(FacInfo[8][fRank6], 32, "%s", dini_Get(file, "Rank6"));
    format(FacInfo[8][fDiv1], 8, "%s", dini_Get(file, "Div1"));
    format(FacInfo[8][fDiv2], 8, "%s", dini_Get(file, "Div2"));
    format(FacInfo[8][fDiv3], 8, "%s", dini_Get(file, "Div3"));
    format(FacInfo[8][fDiv4], 8, "%s", dini_Get(file, "Div4"));
    print("National Guard files loaded successfully.");
Reply
#2

You have missed a ] from the line
Reply
#3

Oh holy minor mistake i did.And when i check serially i didnt figure this shit out thank you.
Reply
#4

Not a problem
Reply
#5

You forgot a ]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)