A little assistance with SSCANF and STRCMP.
#1

Basically, it wont send the messages under the sscanf.

pawn Код:
if(!(strcmp(usage, "store", true)))
        {
            if(sscanf(usage, "s[32]",item))
            {
                SendClientMessage(playerid, COLOUR_GREY, "Usage: /trunk store [item]");
                SendClientMessage(playerid, COLOUR_GREY, "Available Items: Weapon, Weed, Cocaine, Money, Armour");
                return 1;
            }
Reply
#2

What are you doing with your strcmp?

This line should work.
pawn Код:
if(!strcmp(usage, "store", true))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)