[Help] strcmp get playerid
#1

Problem Solved.
Reply
#2

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

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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)