25.02.2014, 04:16
SendClientMessage only uses 3 parameters, you'll need to use "format" to create a string to replace your text.
This:
turns into this:
Sources:
https://sampwiki.blast.hk/wiki/SendClientMessage
https://sampwiki.blast.hk/wiki/Format
This:
pawn Код:
SendClientMessage(GetVehicleDriver(OldVehicle[playerid]), COLOR_WHITE, "%s doesn't have enough money to pay for the TAXI.",GetPlayerNameEx(playerid));
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);
https://sampwiki.blast.hk/wiki/SendClientMessage
https://sampwiki.blast.hk/wiki/Format