problems with sscanf
#5

pawn Code:
CMD:vehtrunk( playerid, params[] )
{
    new option[64];
    if(!sscanf( params, "s[64]", option ))
    {
        SendClientMessage( playerid, COLOR_GREEN, "SYNTAX: /vehtrunk [info/open/close/putgun/takegun/putcocaine/takecocaine/putheroin]");
        SendClientMessage( playerid, COLOR_GREEN, "[takeheroin/putecstasy/takeecstasy/putcrack/takecrack/putweed/takeweed/putcrystalmeth]");
        SendClientMessage( playerid, COLOR_GREEN, "[takecrystalmeth/putsteroids/takesteroids/putgascan/takegascan/putmaterials/takematerials]");

        return 1;
    }

    if ( !isnull( option ) )
    {

        new closest = GetClosestVehicleInRange( playerid, 3.0 );

        new szString[128];


        else if ( !strcmp( option, "putgun", true ) )
        {
            new slot;
            if( sscanf( params, "d", slot ) )
                return SendClientMessage( playerid, COLOR_BEIGE, "SYNTAX: /vehtrunk putgun [1-4 slot]");

            printf(" Slot: %d", slot );
        }
    }

    return 1;
}
Reply


Messages In This Thread
problems with sscanf - by Marricio - 29.01.2012, 22:17
Re: problems with sscanf - by MP2 - 29.01.2012, 22:55
Re: problems with sscanf - by Marricio - 29.01.2012, 23:04
Re: problems with sscanf - by Marricio - 30.01.2012, 18:47
Re: problems with sscanf - by milanosie - 30.01.2012, 18:49
Re: problems with sscanf - by Konstantinos - 30.01.2012, 18:59
Re: problems with sscanf - by admantis - 30.01.2012, 22:52
Re: problems with sscanf - by Marricio - 30.01.2012, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)