01.07.2011, 12:36
Print the contents of PlayerInfo[playerid][pFaction] just before it compares using strcmp and see what the value of the pFaction variable is.
He stated that he was looking for if the variable didn't match. If the player is not in the police department then he is unable to use this command.
pawn Код:
printf("%s", PlayerInfo[playerid][pFaction]);
Quote:
Okay then you should be checking if the strings match, like so:
pawn Код:
|