17.08.2011, 17:03
Hey guys, I made an /ooc command for my server im making, and i used sscanf on it, but for some reason, it limits how many characters can be sent.. Like if i typed "Hey guys, welcome to my server, hope your having fun" it would only show like "Hey guys, welcome to my serv" and cut the rest out. I'm not sure the error, so let me show my command, and hopefully I could receive some help.
pawn Код:
CMD:o(playerid, params[]) {
new
str2ing[512];
if(sscanf(params, "s", sscanfinput)) return SendClientMessage(playerid, COLOR_RED, "Usage [::] /(o)oc yourmessage");
format(str2ing, sizeof(str2ing), "(( [OOC] %s: %s ))", pName(playerid), sscanfinput);
SendClientMessageToAll(COLOR_ORANGE, str2ing);
return 1;