Unusual bug
#2

You need to pass the string size in sscanf.
PHP код:
CMD:me(playeridparams[])
{
    new 
string[256], msg[256];
    if(
sscanf(params"s[256]"msg)) return SendClientMessage(playerid,COLOR_RED"SYNTAX: /me <text>");
    
format(stringsizeof(string), "%s %s"GetName(playerid), msg);
    
SendClientMessageToAll(COLOR_PURPLEstring);
    return 
1;

PHP код:
CMD:do(playeridparams[])
{
    new 
string[256], msg[256];
    if(
sscanf(params"s[256]"msg)) return SendClientMessage(playerid,COLOR_RED"SYNTAX: /do <text>");
    
format(stringsizeof(string), "%s. ((%s))"msgGetName(playerid));
    
SendClientMessageToAll(COLOR_PURPLEstring);
    return 
1;

Reply


Messages In This Thread
Unusual bug - by OmerKhan - 14.03.2018, 07:01
Re: Unusual bug - by Zeth - 14.03.2018, 07:23
Re: Unusual bug - by OmerKhan - 14.03.2018, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)