[Tutorial] How to create a simple announce cmd[sscanf|| Zcmd] - 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)
+---- Forum: Tutorials (
https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to create a simple announce cmd[sscanf|| Zcmd] (
/showthread.php?tid=372460)
Re: How to create a simple announce cmd[sscanf|| Zcmd] -
Jeth - 31.08.2012
Nice tutorial it's good
Re: How to create a simple announce cmd[sscanf|| Zcmd] -
Lordzy - 31.08.2012
@Jeth,
Thank you
Re: How to create a simple announce cmd[sscanf|| Zcmd] -
SRB - 25.10.2013
Code:
CMD:ann(playerid,params[])
{
SendAdminText(playerid, "{00FF00}/ann", params);
new text[60];
if(sscanf(params, "s[60]",text))
return SendClientMessage(playerid, 0xFF0000, "Usage:/ann [text]");
GameTextForAll(text,3000,3);
if(APlayerData[playerid][PlayerLevel] >= 1)
return 1;
}
Code:
C:\Users\SRB\Desktop\serverffs\pawno\include\PPC_PlayerCommands.inc(5736) : warning 209: function "cmd_ann" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
can someone help
Re: How to create a simple announce cmd[sscanf|| Zcmd] -
DobbysGamertag - 26.10.2013
I fixed it for you @SRB.
pawn Code:
CMD:ann(playerid,params[])
{
new text[60];
if(APlayerData[playerid][PlayerLevel] >= 1)//this needs to be at the top.
if(sscanf(params,"s[60]",text))return SendClientMessage(playerid,0xFF0000,"Usage:/ann [text]");
SendAdminText(playerid, "{00FF00}/ann", params);
GameTextForAll(text,3000,3);
return 1;
}
SendAdminText shows you're using PPC :P
Re: How to create a simple announce cmd[sscanf|| Zcmd] -
SRB - 26.10.2013
hehe thx