17.06.2020, 20:45
Hello.
I have a "problem" using multiple text string in sscanf params:
The cmd:
The result is:
Any solution?
Thank you!
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;
}
PHP Code:
JR_Junior | Nick_Name | No | reason No details
Thank you!