SA-MP Forums Archive
[Help] strcmp get playerid - 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: [Help] strcmp get playerid (/showthread.php?tid=603218)



[Help] cmd get playerid - ProRakNet - 20.03.2016

Problem Solved.


Re: [Help] strcmp get playerid - introzen - 20.03.2016

Then post the original problem along with your own solution so others can search for it when they encounter the same in the future.


Re: [Help] strcmp get playerid - ProRakNet - 20.03.2016

well..
PHP код:
#define DIALOG_ID 2016
CMD:command(playerid,params[])
{
new    
id;
if(
sscanf(params,"u",id)) return SendClientMessage(playerid, -1,"Info message(/command [id])");
if(!
IsPlayerConnected(id)) return SendClientMessage(playerid, -1,"Error messsage(player not connect)");
new 
gname[MAX_PLAYER_NAME];
GetPlayerName(idgname,sizeof(gname));
new 
string[128];
format(string,sizeof(string), "{FFFFFF}[!]: Nick: %s\n {FFFFFF}[!]: ID: %i"gnameid);
ShowPlayerDialog(playeridDIALOG_IDDIALOG_STYLE_MSGBOX"{FFFFFF}Info Menu"string"Close""");
return 
1;