sscanf bug again
#4

try

pawn Code:
CMD:fare (playerid, params[])
{  
    if(PlayerIsTaxiDriver[playerid] != 1) return SendClientMessage(playerid, CMD_ERROR, "You're not a taxi driver.");
    new price;
    if (sscanf(params, "d", price)) return SendClientMessage(playerid, 0xFFF0F0, "USAGE : /fare [PRICE]");
    new string[100], taxistName[MAX_PLAYER_NAME];
    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;
}
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: 1 Guest(s)