22.10.2013, 14:15
Im only guessing that you did something wrong with the brackets..
Well, i tried this, cause i havent got any classes/jobs w.e
And it worked perfectly.
Well, you can't type "500$" or something, you need to type 100, 6000 etc..
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;
}
Well, you can't type "500$" or something, you need to type 100, 6000 etc..