SA-MP Forums Archive
/gov - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /gov (/showthread.php?tid=501125)



/gov - CallumDaBest - 16.03.2014

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!

Код:
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.



Re: /gov - PrivatioBoni - 16.03.2014

SendClientMessage(playerid, "USAGE: /gov [text]

To

SendClientMessage(playerid, "USAGE: /gov [text]");


Re: /gov - CallumDaBest - 16.03.2014

thanks!!