Persistent SSCANF Issue, Please help me resolve this once and for all.
#1

The first SSCANF you can see works, but the second does not at all. It's rather irritating. Could someone give me some pointers as to why it will not work, i've tried everything in the book.


pawn Код:
if(sscanf(params, "s[32]",usage))
    {
        SendClientMessage(playerid, COLOUR_GREY, "Usage: /trunk [usage]");
        SendClientMessage(playerid, COLOUR_GREY, "Usages: Store, Get, View");
    }
            printf("USAGE: %s", usage);
    VehicleSQLID[vehicleid] = MySQL_GetValue(VehicleSQLID[vehicleid], "id", "vehicles");
    if(vehicleid == TrunkOpened[playerid])
    {
        if(!strcmp(usage, "store", true))
        {
            printf("USAGE: %s", usage);
            if(sscanf(usage, "s[24]",item))// This will not send the client messages.
            {
                SendClientMessage(playerid, COLOUR_GREY, "Usage: /trunk store [item]");
                SendClientMessage(playerid, COLOUR_GREY, "Available Items: Weapon, Weed, Cocaine, Money, Armour");
            }
                printf("USAGE: %s", usage);
                printf("ITEM: %s", item);
Reply


Messages In This Thread
Persistent SSCANF Issue, Please help me resolve this once and for all. - by Dokins - 13.03.2012, 18:27
Re: Persistent SSCANF Issue, Please help me resolve this once and for all. - by AndreT - 13.03.2012, 18:38
Re: Persistent SSCANF Issue, Please help me resolve this once and for all. - by [ABK]Antonio - 13.03.2012, 18:40
Re: Persistent SSCANF Issue, Please help me resolve this once and for all. - by Babul - 13.03.2012, 18:53

Forum Jump:


Users browsing this thread: 2 Guest(s)