02.03.2012, 01:21
You need to use format.
pawn Код:
new PlateString[MAX_PLAYERS][124]; // This is the license plate string.
CMD:setplate(playerid,params[])
{
new string[124];
if(isnull(params))
{
return SendClientMessage(playerid,-1,"USAGE: /setplate [platetext]");
}
else
{
new msgstring[124];
PlateString[playerid] = string; // Sets the players plate string to what was typed.
format(msgstring,sizeof(msgstring),"You have set your plate to %s",string); // Formats so you could see what was typed
SendClientMessage(playerid,-1,msgstring); // Sends the formatted message.
return 1;
}
}