25.05.2012, 07:56
Quote:
SendClientMessage does not accept all of those additional parameters and cannot be used to format a string, you need to use a function such as format for that, for example:
pawn Код:
|
pawn Код:
forward GetLocation(playerid);
public GetLocation(playerid)
{
new giveplayerid;
new string[128];
GetPlayerPos(giveplayerid, poscord[0], poscord[1], poscord[2]);
SendClientMessage(playerid, COLOR_GRAD4, "Target Coordinates successfully recieved");
format(string, sizeof(string), "Target Coordinates X - %f | Y - %f | Z - %f", poscord[0], poscord[1], poscord[2]);
SendClientMessage(playerid, COLOR_GRAD4, string);
return 1;
}