GetPlayerName problem
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 70, 85.0713,1748.0396,-59.2546))
{
    new name[MAX_PLAYER_NAME+1], msg[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(msg, sizeof(msg), "%s has died in the /bf", name);
    SendClientMessageToAll(COLOR_PURPLE,msg);
}
You need to format the message first and then send it.
Thanks for that, do you mind explaining the format thing? Because I'm pretty new to scripting and this isn't an area I've covered.

+Rep for helping me with tho's lines of code anyway
Reply


Messages In This Thread
GetPlayerName problem - by ExtendedCarbon - 09.09.2013, 18:15
Re: GetPlayerName problem - by Konstantinos - 09.09.2013, 18:18
Re: GetPlayerName problem - by ExtendedCarbon - 09.09.2013, 18:25
Re: GetPlayerName problem - by Konstantinos - 09.09.2013, 18:30
Re: GetPlayerName problem - by ExtendedCarbon - 09.09.2013, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)