CMD:n not working
#1

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.
Reply
#2

printf is for log. SendClientMessage is what you need
Reply
#3

Just like cool said, but more info.

https://sampwiki.blast.hk/wiki/Printf
https://sampwiki.blast.hk/wroot/index.ph...dClientMessage
Reply
#4

Oh I see, so i'll replace printf with, SendClientMessageToAll( color, string).
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)