16.12.2013, 23:21
SSCANF is the issue here, also.
You would have to use an optional parameter, this will work better. Like this:
The string compare should then work.
ALSO:
This tutorial cleared this up a hell of a lot for me.
https://sampforum.blast.hk/showthread.php?tid=250454
You would have to use an optional parameter, this will work better. Like this:
pawn Код:
if(sscanf(params, "s[32]S(0)[32]",option, type))
{
SendClientMessage(playerid, COLOR_WHITE, "** [Usage]: /gift [option]");
SendClientMessage(playerid, COLOR_GREY, "OPTIONS: Create, Remove");
return 1;
}
ALSO:
This tutorial cleared this up a hell of a lot for me.
https://sampforum.blast.hk/showthread.php?tid=250454