sscanf "u" and "s[126]" specifier bug
#8

Try this:

PHP Code:
CMD:w(playeridparams[])
{
    
LoginCheck(playerid);
    new 
string[256],pname[MAX_PLAYER_NAME],matn[356];
    
GetPlayerName(playerid,pname,sizeof(pname));
    if(
sscanf(params,"s[356]",matn)) return Usage(playerid,"w <matn> - Baray Chat Dargooshi");
    
format(string,sizeof(string),""white"[DarGooshi]%s: %s",pname,matn);
    
SendNearMessageplayerid0xFFFFFFFstring12.1);
    
format(sb_stringsizeof(sb_string),"{FF9000}[DarGooshi] {FFFFFF}%s"matn);
    
SetPlayerChatBubble(playeridsb_string0xFFFFFFFF16.0,4000);
    return 
1;

Works for me...




If that doesn't work try using SendClientMessage instead of Usage(playerid,...);

PHP Code:
if(sscanf(params,"s[356]",matn)) return SendClientMessage(playerid, -1"w <matn> - Baray Chat Dargooshi"); 
Reply


Messages In This Thread
sscanf "u" and "s[126]" specifier bug - by xRadical3 - 24.12.2018, 13:46
Re: sscanf "u" and "s[126]" specifier bug - by Calisthenics - 24.12.2018, 15:00
Re: sscanf "u" and "s[126]" specifier bug - by xRadical3 - 24.12.2018, 15:50
Re: sscanf "u" and "s[126]" specifier bug - by SapMan - 24.12.2018, 16:22
Re: sscanf "u" and "s[126]" specifier bug - by xRadical3 - 25.12.2018, 07:56
Re: sscanf "u" and "s[126]" specifier bug - by aKnoxx - 25.12.2018, 09:17
Re: sscanf "u" and "s[126]" specifier bug - by xRadical3 - 25.12.2018, 12:53
Re: sscanf "u" and "s[126]" specifier bug - by aKnoxx - 26.12.2018, 07:39

Forum Jump:


Users browsing this thread: 1 Guest(s)