17.12.2011, 17:00
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.
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.
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;
}