sscanf optional params
#2

pawn Code:
"ds[30]S(-1)[30]D(-1)",id,opc,opcs,opcd
use "r" for id and if the opc, opcs and opcd are string then use "s[ value ]"
For Example:
pawn Code:
new
    id, opc[ 30 ], opcs[ 30 ], opcd[ 30 ];

if( !sscanf( params, "rs[30]s[30]s[30]", id, opc, opcs, opcd ) )
{
    // Rest
Reply


Messages In This Thread
sscanf optional params - by Trenico - 02.02.2012, 15:24
Re: sscanf optional params - by Konstantinos - 02.02.2012, 15:28
Re: sscanf optional params - by Trenico - 02.02.2012, 15:34
Re: sscanf optional params - by Konstantinos - 02.02.2012, 15:37

Forum Jump:


Users browsing this thread: 2 Guest(s)