"Success!","You have successfully logged in as %s!","Ok","", GetName(playerid));
warning 202: number of arguments does not match definition
I got this:
Код:
"Success!","You have successfully logged in as %s!","Ok","", GetName(playerid)); Код:
warning 202: number of arguments does not match definition |
new Fname[MAX_PLAYER_NAME], Fstring[24+MAX_PLAYER_NAME]; // declaring new variables
GetPlayerName(playerid, Fname, sizeof(Fname));// getting the player name
format(Fstring, sizeof(Fstring), "You have succesfully logged in as %s", Fname); // formated string with the player name
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Done",Fstring,"Okay",""); // change the dialogue id to your own.
ShowPlayerDialog(playerid, DIALOG_LOGINSUCCESS, "Success", string, "Ok", "");
new Fstring[128]; format(Fstring, sizeof(Fstring), "You have succesfully logged in as '%s'.", GetName(playerid)); ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_MSGBOX,"Done",Fstring,"Okay","");
new Fstring[128];
new Fstring[60];
format(Astring, sizeof(Astring), "You have successfully made an account \n\nAccount Name: %s\nPassword: %s", GetName(playerid), PlayerInfo[playerid][pPass]);
Ok I sorted it out, but how would I get their password? because its hashed straight away, I only want their password for this(first login):
Код:
format(Astring, sizeof(Astring), "You have successfully made an account \n\nAccount Name: %s\nPassword: %s", GetName(playerid), PlayerInfo[playerid][pPass]); |
You really shouldn't show the password, there's a reason passwords are censored when they're typed in.
|