View Single Post
Old 29/05/2010, 07:24 PM   #5
Calgon
Banned
 
Join Date: Jan 2009
Posts: 6,129
Reputation: 1127
Default Re: How to write something in a VAR?

Or, simply:

pawn Code:
SendClientMessage(playerid, color, "Message here.");

However, if you need to use a variable in a string, then you'll need to create a string and format it:

pawn Code:
new String[6], lol = 6; // New variables are integers by default, you need to set a cell size.
format(String, sizeof(String), "hello%d", lol ); // lol is an integer with the value of 6. The message will be "hello6"
SendClientMessage(playerid, color, string); // Sending the string.
Calgon is offline