CMD:n not working - 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: CMD:n not working (
/showthread.php?tid=631380)
CMD:n not working -
LeeXx - 28.03.2017
I'm really sorry this is really newbie i know that i'm still learning, and for a reason i tried to script a simple /n command and it's not working, i compiled and everything is good, but IG when it type /n ''Text'' nothing shows.
Код:
CMD:n(playerid, params[])
{
new
string[ 128 ]
;
if(isnull(params)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: {FFFFFF} /n [Newbie chat]");
format(string, sizeof(string), "(( Newbie: %s[%i]: %s ))", RPName( playerid ), playerid, params);
printf("%s", string);
return 1;
}
What is wrong with the codes?
And thank you for your help and your time.
Re: CMD:n not working -
coool - 28.03.2017
printf is for log. SendClientMessage is what you need
Re: CMD:n not working -
Unte99 - 28.03.2017
Just like cool said, but more info.
https://sampwiki.blast.hk/wiki/Printf
https://sampwiki.blast.hk/wroot/index.ph...dClientMessage
Re: CMD:n not working -
LeeXx - 28.03.2017
Oh I see, so i'll replace printf with, SendClientMessageToAll( color, string).
Thank you.