How to make string ?
#8

This is how you'd add an ID to the thing as-well if thats what you are looking for:

pawn Код:
new string[128];
new float:x, float:y, float:z;
GetPlayerPos(playerid, x, y, z);
new name[24];
GetPlayerName(playerid, name, 24);
format(string, sizeof(string),"[ID:%i]%s Says: %s", playerid, name, text);
foreach(Player, i)
{
    if(IsPlayerInRangeOfPoint(i, 15, x, y, z)) SendClientMessage(i, 0x0000FF, string);
}
return 0;
Since you want the players ID, it needs to be an integer, therefore the %i is needed (or %d)
Reply


Messages In This Thread
How to make string ? - by [M.A]Angel[M.A] - 24.07.2012, 14:09
Re: How to make string ? - by milanosie - 24.07.2012, 14:14
Re: How to make string ? - by [M.A]Angel[M.A] - 24.07.2012, 14:17
Re: How to make string ? - by Akira297 - 24.07.2012, 14:18
Re: How to make string ? - by milanosie - 24.07.2012, 14:21
Re: How to make string ? - by [M.A]Angel[M.A] - 24.07.2012, 14:25
Re: How to make string ? - by milanosie - 24.07.2012, 14:33
Re: How to make string ? - by Kindred - 24.07.2012, 14:45
Re: How to make string ? - by [M.A]Angel[M.A] - 24.07.2012, 15:01
Re: How to make string ? - by Kindred - 24.07.2012, 15:11

Forum Jump:


Users browsing this thread: 2 Guest(s)