Taxi System
#9

SendClientMessage only uses 3 parameters, you'll need to use "format" to create a string to replace your text.
This:
pawn Код:
SendClientMessage(GetVehicleDriver(OldVehicle[playerid]), COLOR_WHITE, "%s doesn't have enough money to pay for the TAXI.",GetPlayerNameEx(playerid));
turns into this:
pawn Код:
new string[128];
format(string,sizeof(string),"%s doesn't have enough money to pay for the TAXI.",GetPlayerNameEx(playerid));
SendClientMessage(GetVehicleDriver(OldVehicle[playerid]), COLOR_WHITE, string);
Sources:
https://sampwiki.blast.hk/wiki/SendClientMessage
https://sampwiki.blast.hk/wiki/Format
Reply


Messages In This Thread
Taxi System - by FaZeRs - 24.02.2014, 20:43
Re: Taxi System - by Aerotactics - 24.02.2014, 22:10
Re: Taxi System - by FaZeRs - 24.02.2014, 22:36
Re: Taxi System - by Aerotactics - 24.02.2014, 22:40
Re: Taxi System - by FaZeRs - 24.02.2014, 23:09
Re: Taxi System - by DarkLored - 25.02.2014, 01:08
Re: Taxi System - by FaZeRs - 25.02.2014, 01:40
Re: Taxi System - by FaZeRs - 25.02.2014, 02:31
Re: Taxi System - by Aerotactics - 25.02.2014, 04:16
Re: Taxi System - by FaZeRs - 25.02.2014, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)