[HELP]Little doubt with sscanf.
#3

You're not using sscanf properly.

You can't use sscanf to replace strcmp, you use it to split strings. But you only have one string, so there's no point in splitting it.

pawn Код:
CMD:help(playerid, params[]) {
   if(!strcmp(params, "Cuenta")) {
      // Your code here.
   }
   return 1;
}
The 'params' variable holds everything that's typed after the command, if there's just one thing, then you might as well just use 'params' directly, like I've done in the code example above.
Reply


Messages In This Thread
[HELP]Little doubt with sscanf. - by [DOG]irinel1996 - 17.12.2011, 16:38
Re: [HELP]Little doubt with sscanf. - by Ash. - 17.12.2011, 16:57
Re: [HELP]Little doubt with sscanf. - by Calgon - 17.12.2011, 17:00
Respuesta: [HELP]Little doubt with sscanf. - by [DOG]irinel1996 - 17.12.2011, 17:17
Re: [HELP]Little doubt with sscanf. - by Calgon - 17.12.2011, 18:13
Respuesta: Re: [HELP]Little doubt with sscanf. - by [DOG]irinel1996 - 17.12.2011, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)