How to: add value into SendClientMessage? - 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: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to: add value into SendClientMessage? (
/showthread.php?tid=173749)
How to: add value into SendClientMessage? -
sheepondrugs - 03.09.2010
Hi,
I know this is maybe a silly questions but how do you add a value into a "SendClientMessage"?
I have looked on ****** and other bits of script but I can't find anything, is it even possible??
I have tried doing this: (But it didn't work)
Код:
SendClientMessage(killerid,COLOR_RED, "You killed a person with ", GetPlayerWantedLevel(playerid) ," wanted level");
Thanks!
Re: How to: add value into SendClientMessage? -
Cameltoe - 03.09.2010
go to the wiki and search for format
Re: How to: add value into SendClientMessage? -
sheepondrugs - 03.09.2010
Quote:
Originally Posted by Cameltoe
go to the wiki and search for format
|
I tried a few time
otherwise I wouldn't have posted here
Re: How to: add value into SendClientMessage? -
Scream[SM] - 03.09.2010
new string[128]; // under the OnPlayerDeath callback
format(string, 128, "You killed a person with %i wanted level!", GetPlayerWantedLevel(playerid));
SendClientMessage(killerid, COLOR_RED, string);
I think its works.
Re: How to: add value into SendClientMessage? -
Cameltoe - 03.09.2010
Quote:
Originally Posted by sheepondrugs
I tried a few time otherwise I wouldn't have posted here
|
Then you obviously didn't try hard enough.. the format example at the wiki is so explaining .. even my little brother could do it and he can't even read.
Re: How to: add value into SendClientMessage? -
sheepondrugs - 04.09.2010
Quote:
Originally Posted by Cameltoe
Then you obviously didn't try hard enough.. the format example at the wiki is so explaining .. even my little brother could do it and he can't even read.
|
I didn't ask for an explanation, I asked nicely for the the code snipplet.
I guess I would have been better getting an intellectual reply from your brother..
Re: How to: add value into SendClientMessage? -
Cameltoe - 04.09.2010
Quote:
Originally Posted by sheepondrugs
I didn't ask for an explanation, I asked nicely for the the code snipplet.
I guess I would have been better getting an intellectual reply from your brother..
|
Nope, you asked how it's done.. i refereed you to the wiki page as explains the format function pretty well..
if you want to request snippet's do that in the script request section.