This works in another script but not mine?
#1

It's to do with SSCANF and mine works in the exact same way, can someone explain why this one: (VORTEX 2) Works.

pawn Код:
else if(strcmp(tool, "Disregard", true) == 0) {
                new
                    userID,
                    string[128];

                if(sscanf(params, "s[16]u", tool, userID)) {
                    SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/reports disregard [playerid]");
                }
But mine; Pretty much the same; Doesnt.

pawn Код:
if(strcmp(usage, "store", true) ==0)
        {
            if(sscanf(params, "s[24]s[32]",usage,item))
            {
                SendClientMessage(playerid, COLOUR_GREY, "Usage: /trunk store [item]");
                SendClientMessage(playerid, COLOUR_GREY, "Available Items: Weapon, Weed, Cocaine, Money, Armour");
            }
ISSUE IS: The SendClientMessage's do not display for mine, but they do on the first.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)