Small problem
#1

Okay so, here is the line where I get all the errors

Код:
else if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 6)

Код:
\gamemodes\crp.pwn(6602) : error 001: expected token: ";", but found "if"
\gamemodes\crp.pwn(6602) : error 029: invalid expression, assumed zero
How do I remove these two errors?
Reply
#2

Looks like your problems within DynamicFactions[PlayerInfo[playerid][pFaction]][fType].

(Format ArrayName[Variable][Variable], your array is like ArrayName[Variable[Variable][Variable]][Variable] which isn't the right syntax.)

Try this:

pawn Код:
else if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[pFaction][fType] == 6)
Not sure if pFaction and fType will be the correct variables for that array, but that's definitely your problem.

If you're new to arrays, try having a look at this: https://sampforum.blast.hk/showthread.php?tid=318212
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)