sscanf bug again
#5

Im only guessing that you did something wrong with the brackets..
Well, i tried this, cause i havent got any classes/jobs w.e
pawn Code:
CMD:fare(playerid, params[])
{
    new price;
    new string[128];
    new taxistName[MAX_PLAYER_NAME];
    if (sscanf(params, "i", price)) return SendClientMessage(playerid, 0xFFF0F0, "USAGE : /fare [PRICE]");
    GetPlayerName(playerid, taxistName, MAX_PLAYER_NAME);
    format (string, sizeof(string), "Taxi driver %s is now on duty. Fare: %i.", taxistName,price);
    SendClientMessageToAll(0xFFFFCC, string);
    return 1;
}
And it worked perfectly.
Well, you can't type "500$" or something, you need to type 100, 6000 etc..
Reply


Messages In This Thread
sscanf bug again - by Tagathron - 22.10.2013, 13:44
Re: sscanf bug again - by newbie scripter - 22.10.2013, 14:00
Re: sscanf bug again - by Tagathron - 22.10.2013, 14:05
Re: sscanf bug again - by PT - 22.10.2013, 14:13
Re: sscanf bug again - by Kyance - 22.10.2013, 14:15
Re: sscanf bug again - by Tagathron - 22.10.2013, 14:22
Re: sscanf bug again - by Tagathron - 22.10.2013, 14:27
Re: sscanf bug again - by Tagathron - 22.10.2013, 14:47
Re: sscanf bug again - by Threshold - 22.10.2013, 14:49
Re: sscanf bug again - by Tagathron - 22.10.2013, 14:51

Forum Jump:


Users browsing this thread: 2 Guest(s)