23.05.2014, 22:13
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:
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
(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)
If you're new to arrays, try having a look at this: https://sampforum.blast.hk/showthread.php?tid=318212