13.07.2011, 16:20
Hello. I have a little problem with a command i am trying to make "/do". So far i did this:
But i want to reverse the 2 "%s"'s so instead of being "** Name ((Text))" I want it to be: "** Text ((Name))"
Can anyone tell me please how i can do that?
Код:
if(!strcmp(cmdtext,"/do ", true, 3)) { if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /do [action]"); new string[128]; GetPlayerName(playerid, string, sizeof(string)); format(string,sizeof(string),"** %s (( %s ))", string, cmdtext[4]); ProxDetector(170.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE); return 1; }
Can anyone tell me please how i can do that?