multiple parameters using sscanf
#3

Use what funky posted. You'd then check inside the command on what action they specified (to store, get or show) with a simple if/else if expression:

pawn Code:
if( !strcmp(action, "store") )
{
    // .. They want to store
}
else if( !strcmp(action, "get") )
{
    // .. They want to get
}
else if( !strcmp( action, "show") )
{
    // .. They want to show
}
else
{
    // .. Unknown action
}
Reply


Messages In This Thread
multiple parameters using sscanf - by fordawinzz - 26.12.2011, 08:58
Re: multiple parameters using sscanf - by Ash. - 26.12.2011, 09:07
Re: multiple parameters using sscanf - by blewert - 26.12.2011, 09:14
Re: multiple parameters using sscanf - by fordawinzz - 26.12.2011, 09:14
Re: multiple parameters using sscanf - by zT KiNgKoNg - 28.07.2013, 07:23

Forum Jump:


Users browsing this thread: 1 Guest(s)