22.10.2013, 14:13
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;
}