Chat issue
#6

Quote:
Originally Posted by Abreezy
Посмотреть сообщение
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;
PHP код:
CMD:o(playeridparams[])
{
    new 
string[128];
    if(
sscanf(params"s[128]"params)) return SendClientMessage(playeridCOLOR_RED"USAGE: /ooc [message]");
    
format(stringsizeof(string), "(( [OOC] %s: %s))"pName(playerid), params);
    
SendClientMessageToAll(COLOR_ORANGEstring);
    return 
1;

Reply


Messages In This Thread
Chat issue - by Abreezy - 17.08.2011, 17:03
Re: Chat issue - by Kingunit - 17.08.2011, 17:04
Re: Chat issue - by KingTurtle - 17.08.2011, 17:06
Re: Chat issue - by Abreezy - 17.08.2011, 17:18
Re: Chat issue - by Abreezy - 17.08.2011, 22:03
Re: Chat issue - by Kush - 17.08.2011, 22:09
Re: Chat issue - by Abreezy - 17.08.2011, 22:28
Re: Chat issue - by Kush - 17.08.2011, 22:34
Re: Chat issue - by Abreezy - 17.08.2011, 22:35
Re: Chat issue - by =WoR=Varth - 18.08.2011, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)