Confusing Error.
#1

The error I'm getting is this:

pawn Код:
C:\Users\Ben\Desktop\SF-RP\gamemodes\sfrp.pwn(5639) : error 001: expected token: "]", but found "-identifier-"
C:\Users\Ben\Desktop\SF-RP\gamemodes\sfrp.pwn(5639) : warning 215: expression has no effect
C:\Users\Ben\Desktop\SF-RP\gamemodes\sfrp.pwn(5639) : error 001: expected token: ";", but found "]"
C:\Users\Ben\Desktop\SF-RP\gamemodes\sfrp.pwn(5639) : error 029: invalid expression, assumed zero
C:\Users\Ben\Desktop\SF-RP\gamemodes\sfrp.pwn(5639) : fatal error 107: too many error messages on one line
On these lines.

pawn Код:
format(FVar[lowestid][factionname], sizeof(FVar[lowestid][factionname]), "%s", fname);
                FVar[lowestid][factiontype] = ftype;
                format(FVar[lowestid][rank10name], sizeof(FVar[lowestid][rank10name]), "rank10");
                format(FVar[lowestid][rank9name], sizeof(FVar[lowestid][rank9name]), "rank9");
                format(FVar[lowestid][rank8name], sizeof(FVar[lowestid][rank8name]), "rank8");
                format(FVar[lowestid][rank7name], sizeof(FVar[lowestid][rank7name]), "rank7");
                format(FVar[lowestid][rank6name], sizeof(FVar[lowestid][rank6name]), "rank6");
                format(FVar[lowestid][rank5name], sizeof(FVar[lowestid][rank5name]), "rank5");
                format(FVar[lowestid][rank4name], sizeof(FVar[lowestid][rank4name]), "rank4");
                format(FVar[lowestid][rank3name], sizeof(FVar[lowestid][rank3name]), "rank3");
                format(FVar[lowestid][rank2name], sizeof(FVar[lowestid][rank2name]), "rank2");
                format(FVar[lowestid][rank1name], sizeof(FVar[lowestid][rank1name]), "rank1");
                FVar[lowestid][factionbank] = 500000;
It happens for each of the format(FVar"..") Lines, I can't quite figure out what is wrong. Here's the enum.

pawn Код:
enum factionstats
{
    factionid,
    factionname[32],
    factiontype,
    rank10name[32],
    rank9name[32],
    rank8name[32],
    rank7name[32],
    rank6name[32],
    rank5name[32],
    rank4name[32],
    rank3name[32],
    rank2name[32],
    rank1name[32],
    factionbank
}
new FVar[MAX_FACTIONS][factionstats];
Reply
#2

Hmm...try this
pawn Код:
format(FVar[lowestid][factionname], sizeof(FVar[lowestid][factionname]), "%s", fname);
                FVar[lowestid][factiontype] = ftype;
                format(FVar[lowestid][rank10name], sizeof(FVar[lowestid][rank10name]), "rank10"));
                format(FVar[lowestid][rank9name], sizeof(FVar[lowestid][rank9name]), "rank9"));
                format(FVar[lowestid][rank8name], sizeof(FVar[lowestid][rank8name]), "rank8"));
                format(FVar[lowestid][rank7name], sizeof(FVar[lowestid][rank7name]), "rank7"));
                format(FVar[lowestid][rank6name], sizeof(FVar[lowestid][rank6name]), "rank6"));
                format(FVar[lowestid][rank5name], sizeof(FVar[lowestid][rank5name]), "rank5"));
                format(FVar[lowestid][rank4name], sizeof(FVar[lowestid][rank4name]), "rank4"));
                format(FVar[lowestid][rank3name], sizeof(FVar[lowestid][rank3name]), "rank3"));
                format(FVar[lowestid][rank2name], sizeof(FVar[lowestid][rank2name]), "rank2"));
                format(FVar[lowestid][rank1name], sizeof(FVar[lowestid][rank1name]), "rank1"));
                FVar[lowestid][factionbank] = 500000;
Reply
#3

Nope, still getting the same errors.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)