if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login",""COL_WHITE"The account is already registered,please type your password. \n "COL_ORANGE"Username:"COL_WHITE" string \n "COL_ORANGE"Password :","Login","Quit"); } else { ShowPlayerDialog(playerid,DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_GREEN"Registering...",""COL_ORANGE"Type your password below to register a new account :((How to get players name and put it here","Register","Quit"); }
{ ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login",""COL_WHITE"The account is already registered,please type your password. \n "COL_ORANGE"Username:((How to show the players name here who is logging in ))"COL_WHITE" string \n "COL_ORANGE"Password :","Login","Quit"); }
\n "COL_ORANGE"Username:((How to show the players name here who is logging in ))
new username[MAX_PLAYER_NAME], usernamemessage[23 + MAX_PLAYER_NAME]; GetPlayerName(playerid, username, sizeof(username)); format(usernamemessage, sizeof(usernamemessage), ""COL_WHITE"The account is already registered,type in your password \n "COL_ORANGE"Username:"COL_WHITE"%s \n "COL_ORANGE"Password:", usernamemessage); if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login","username message,"Login","Quit"); } |
new string[256]; format(string, sizeof(string), "This account is already registered, please type your password.\n\nUsername: %s\nPassword:", PlayerName(playerid)); ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login", string, "Login","Quit");
Код HTML:
new string[1024]; format(string, sizeof(string), "This account is already registered, please type your password.\n\nUsername: %s\nPassword:", PlayerName(playerid)); ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login", string, "Login","Quit"); |
new string[1024];
new username [24] , new string [1024]; GetPlayerName(playerid, username, sizeof(username)); format(string, sizeof(string), "This account is already registered, please type your password.\n\nUsername: %s\nPassword:",username); ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login", string, "Login","Quit"); |
E:\Pawno\pawno\CODTOW.pwn(177) : error 001: expected token: "-identifier-", but found "new" E:\Pawno\pawno\CODTOW.pwn(17- : error 017: undefined symbol "string" E:\Pawno\pawno\CODTOW.pwn(17- : error 017: undefined symbol "string" E:\Pawno\pawno\CODTOW.pwn(17- : error 029: invalid expression, assumed zero E:\Pawno\pawno\CODTOW.pwn(17- : fatal error 107: too many error messages on one line |
if(fexist(UserPath(playerid))) { new playername[MAX_PLAYER_NAME], dialog_string[120 + MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); format(dialog_string, sizeof(dialog_string), ""COL_WHITE"The account is already registered,type in your password \n "COL_ORANGE"Username:"COL_WHITE"%s \n "COL_ORANGE"Password:", dialog_string); INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login", dialog_string, "Login", "Quit"); }