15.12.2013, 00:32
(
Последний раз редактировалось sidney123; 15.12.2013 в 01:16.
)
I've fixed this error myself. I forgot to close a function in the file which called government.pwn.
Hello all,
It's been a while since I've last touched my script and I thought that everything would be fine. I commented out useless crap and now I'm getting one error, but I can't see what it is really. It's very strange because this error showed up before I began commenting out useless crap.
This function can be used in commands to check if the player is really in the government faction.
This is the error code:
This is the line:
Note:
I didn't touch this file while commenting. All files are seperated.
Yours sincerely,
Sidney.
Hello all,
It's been a while since I've last touched my script and I thought that everything would be fine. I commented out useless crap and now I'm getting one error, but I can't see what it is really. It's very strange because this error showed up before I began commenting out useless crap.
pawn Код:
isGovernment(playerid) {
new faction = GetPVarInt(playerid, "Faction");
return getFactionType(faction) == EFactionType_Government;
}
This is the error code:
Код:
crp\factions\government.pwn(10) : error 001: expected token: "}", but found "-i dentifier-"
pawn Код:
isGovernment(playerid) {
I didn't touch this file while commenting. All files are seperated.
Yours sincerely,
Sidney.