28.08.2011, 18:07
(
Последний раз редактировалось Penait1; 28.08.2011 в 19:33.
Причина: [FIXED]
)
Hi, i made a command /me. It should give a error if you dont fill in the params.. But it doesnt give the error?
Code:
Thanks
Penait1
Code:
Код:
CMD:me(playerid, params[]) { if(!strlen(params)) { SendClientMessage(playerid, COLOR_RED, "[ERROR] "green"Usage: /me [TEXT]"); return 1; //Stopt het commando } else { new pname[24]; new string[128]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "[ME] "yellow"%s "green"%s "grey"(/Me [TEXT])", pname, params); SendClientMessageToAll(COLOR_RED, string); } return 1; }
Penait1