16.03.2014, 14:47
Hello i want to create a /gov command for all my current factions which are FCSD = 1, FCFD = 2 FCRR = 3 FCGOV = 4
and i wish them to all have the /gov permission, i have created a CMD but it is not allowing it the CMD and Error's are below!
and i wish them to all have the /gov permission, i have created a CMD but it is not allowing it the CMD and Error's are below!
Код:
CMD:gov(playerid, params[]) { if(PlayerInfo[playerid][pMember] == 1) if(PlayerInfo[playerid][pMember] == 2) if(PlayerInfo[playerid][pMember] == 3) if(PlayerInfo[playerid][pMember] == 4) SendClientMessage(playerid, "USAGE: /gov [text] SendClientMessageToAll(playerid, "_____Government News_____"); format(string, sizeof(string), "%s(%s) -(%s): %s", Factions(playerid), GetRankName(playerid), GetName(playerid), text); return 1; }
Код:
C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium.pwn(978) : error 037: invalid string (possibly non-terminated string) C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium.pwn(978) : error 029: invalid expression, assumed zero C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium.pwn(978) : error 017: undefined symbol "gov" C:\Users\Gamer\Desktop\Goodly\gamemodes\Millenium.pwn(978) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.