A little help with sscanf
#1

Hello.
I have a "problem" using multiple text string in sscanf params:

The cmd:
PHP Code:
 /sendinfo [JR_Junior] [Nick_Name] [No reason] [No details
PHP Code:
CMD:sendinfo(playerid,params[])
{
    new 
admin[25],account[25],reason[128],details[128];
    if(!
sscanf(params"s[25]s[25]s[128]s[128]",admin,account,reason,details))
    {
        
printf("%s | %s | %s | %s",admin,account,reason,details);
    }
    return 
1;

The result is:
PHP Code:
JR_Junior Nick_Name No reason No details 
Any solution?
Thank you!
Reply


Messages In This Thread
A little help with sscanf - by JR_Junior - 17.06.2020, 20:45
Re: A little help with sscanf - by Shadow_ - 18.06.2020, 21:30
Re: A little help with sscanf - by JR_Junior - 18.06.2020, 22:53
Re: A little help with sscanf - by Shadow_ - 19.06.2020, 14:04

Forum Jump:


Users browsing this thread: 1 Guest(s)