04.10.2010, 01:28
(
Последний раз редактировалось Crayon; 04.10.2010 в 02:39.
)
Code:
if(!strcmp(cmdtext, "/do", true, 3))
{
if(!cmdtext[3])return SendClientMessage(playerid, COLOR_GREY, "USAGE: /do [description]");
new str[128];
GetPlayerName(playerid,str, sizeof(str));
format(str, sizeof(str), "(( %s ))%s", str, cmdtext [3]);
SendClientMessageToAll (COLOR_PURPLE, str);
return 1;
}
Everything works as is. The players name wraps up in brackets as I like.
Question:
How can I make the player name to appear at the back of the sentence.
Example:
/do Big Muscular Man
Comes out as:
Big Muscular Man ((User_Name))
Thanks for help
if(!strcmp(cmdtext, "/do", true, 3))
{
if(!cmdtext[3])return SendClientMessage(playerid, COLOR_GREY, "USAGE: /do [description]");
new str[128];
GetPlayerName(playerid,str, sizeof(str));
format(str, sizeof(str), "(( %s ))%s", str, cmdtext [3]);
SendClientMessageToAll (COLOR_PURPLE, str);
return 1;
}
Everything works as is. The players name wraps up in brackets as I like.
Question:
How can I make the player name to appear at the back of the sentence.
Example:
/do Big Muscular Man
Comes out as:
Big Muscular Man ((User_Name))
Thanks for help