Issues with optional string on sscanf?
#3

How can I allow it to have a space? Also this happens. I've used the optionals before without issue.

This happens on a print.

pawn Код:
if(sscanf(params, "s[24]s[32]s[24]",usage,item, wepname))
                {
                    printf("usage %s, item %s, wepname %s", usage, item, wepname);
                    SendClientMessage(playerid, COLOUR_GREY, "Usage: /trunk store weapon [weapon name]");
                    SendClientMessage(playerid, COLOUR_GREY, "Use /wepnames for a list of valid names.");
                    return 1;
                }
It returns 0 for wepname?
Reply


Messages In This Thread
Issues with optional string on sscanf? - by Dokins - 16.03.2015, 18:24
Re: Issues with optional string on sscanf? - by Vince - 16.03.2015, 19:27
Re: Issues with optional string on sscanf? - by Dokins - 16.03.2015, 19:34
Re: Issues with optional string on sscanf? - by Dokins - 16.03.2015, 22:35
Re: Issues with optional string on sscanf? - by Dokins - 16.03.2015, 23:21

Forum Jump:


Users browsing this thread: 1 Guest(s)