Combining strings in one paramater?
#2

Use format!

pawn Код:
new string [ 128 ];

format( string, sizeof ( string ), "(ADMIN) %s says %s", user, message );
SendClientMessageToAll ( -1, string );
%s is a string, this is a combination of characters and numbers.

The first %s turns into whatever "user" is defined to, and the second %s turns into the message inputted.
Reply


Messages In This Thread
Combining strings in one paramater? - by Nathan_Taylor - 27.02.2013, 22:26
Re: Combining strings in one paramater? - by 2KY - 27.02.2013, 22:28
Re: Combining strings in one paramater? - by Nathan_Taylor - 27.02.2013, 22:31
Respuesta: Combining strings in one paramater? - by Strier - 27.02.2013, 22:33
Re: Combining strings in one paramater? - by Nathan_Taylor - 27.02.2013, 22:43

Forum Jump:


Users browsing this thread: 1 Guest(s)