11.03.2012, 01:18
You cannot format a string inside of SendClientMessage. Use this instead:
pawn Код:
new Float:x, Float:y, Float:z, string[128];
GetPlayerPos(playerid, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
{
format(string, sizeof(string), "%s has used their authorization card to open the door.", szPlayerName);
SendClientMessage(playerid, COLOR_PURPLE, string);
}
}
}