something is wrong ?
#5

pawn Код:
SendClientMessage(playerid, RED,"Admin Name: %s", GetName(playerid));
SendClientMessage only takes 3 parameters:
- playerid
- colour
- string

The string can first be formatted with:

pawn Код:
new string[218], astring[218], anumber;
// imagine astring is "Hello!" and anumber is 5
format(string, sizeof(string), "My text with a string %s and a number: %d", astring, anumber);
SendClientMessage(playerid, COLOUR_WHATEVER, string);
// text now comes out in COLOUR_WHATEVER and the text is: My text with a string Hello! and a number: 5
Reply


Messages In This Thread
something is wrong ? - by AYOUYOU - 28.11.2014, 19:50
Re : something is wrong ? - by MCZOFT - 28.11.2014, 19:54
Re: something is wrong ? - by silenthill - 28.11.2014, 20:02
Re : something is wrong ? - by AYOUYOU - 28.11.2014, 20:03
Re: something is wrong ? - by mamorunl - 28.11.2014, 20:05
Re : something is wrong ? - by AYOUYOU - 28.11.2014, 20:22
Re: something is wrong ? - by mamorunl - 28.11.2014, 20:27
Re: Re : something is wrong ? - by DaniceMcHarley - 28.11.2014, 20:47
Re : something is wrong ? - by AYOUYOU - 28.11.2014, 21:05
Re: something is wrong ? - by xStunt - 28.11.2014, 21:42

Forum Jump:


Users browsing this thread: 4 Guest(s)