20.11.2012, 16:36
Okay, so I have my login system scripted but ATM you can type any password and you are logged in.. I can't find the problem/error.. When I compile no error's at all ![Smiley](images/smilies/smile.png)
If you can help, I'll +Rep
![Smiley](images/smilies/smile.png)
Code:
ShowMainMenuDialog(playerid, frame) { new titlestring[64]; new string[256]; switch(frame) { case 1: { new ip[32]; GetPlayerIp(playerid, ip, 32); format(titlestring, sizeof(titlestring), "Login - %s", GetPlayerNameEx(playerid)); format(string, sizeof(string), "Welcome to High Street's Roleplay, %s.\n\nIP Address: 66.146.239.20:7777\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid), ip); ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit"); } case 2: { new ip[32]; GetPlayerIp(playerid, ip, 32); format(titlestring, sizeof(titlestring), "Register - %s", GetPlayerNameEx(playerid)); format(string, sizeof(string), "High Street's Roleplay, %s.\n\nIP Address: 66.146.239.20:7777 %s\n\nYou may register an account by entering a desired password here:", GetPlayerNameEx(playerid), ip); ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_PASSWORD,titlestring,string,"Register","Exit"); } case 3: { new ip[32]; GetPlayerIp(playerid, ip, 32); format(titlestring, sizeof(titlestring), "Login - %s", GetPlayerNameEx(playerid)); format(string, sizeof(string), "Invalid Password!\n\nWelcome to High Street's Roleplay, %s.\n\nIP Address: 66.146.239.20:7777 %s\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid), ip); ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit"); } } }