03.07.2013, 06:26
I suggest using a stock or function to retrieve the name, Makes it much easier
EDIT: Ops ^ Didnt see someone is helping you already, oh well. you can use this if you want, maybe it will help you
Код:
/* Here is two options you can use, you can either use ZCMD or strcmp. Up to you. Hope this helps you out */ #define DIALOG_DONATE 1 GetName(playerid) { new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); return pName; } if(strcmp(cmdtext,"/Help") == 0) { new string[256]; format(string, sizeof string, "Hello friends\n\n\n\nThe best of server %s\n", GetName(playerid)); ShowPlayerDialog(playerid, DIALOG_DONATE, DIALOG_STYLE_MSGBOX , "{E01649}Help Menu", string, "Ok", "Close"); return 1; } CMD:help(playerid, params[]) { new string[256]; format(string, sizeof string, "Hello friends\n\n\n\nThe best of server %s\n", GetName(playerid)); ShowPlayerDialog(playerid, DIALOG_DONATE, DIALOG_STYLE_MSGBOX, "{E01649}Help Menu", string, "Ok", "Close"); return 1; }