SA-MP Forums Archive
Player's Id are not shown - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player's Id are not shown (/showthread.php?tid=334662)



Player's Id are not shown - newbienoob - 15.04.2012

pawn Код:
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),"%s (ID: %d) has joined the server",name);
SendClientMessageToAll(COLOR_GREEN,str);

It doesn't show the player's id. How can i fix it?


Re: Player's Id are not shown - tyler12 - 15.04.2012

PHP код:
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),"%s (ID: %d) has joined the server",name,playerid);
SendClientMessageToAll(COLOR_GREEN,str); 



Re: Player's Id are not shown - Hoss - 15.04.2012

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
pawn Код:
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),"%s (ID: %d) has joined the server",name);
SendClientMessageToAll(COLOR_GREEN,str);

It doesn't show the player's id. How can i fix it?
[QUOTE=newbienoob;1800364]
pawn Код:
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),"%s (ID: %d) has joined the server",name,playerid);
SendClientMessageToAll(COLOR_GREEN,str);



Re: Player's Id are not shown - newbienoob - 15.04.2012

Thanks