[Tutorial] eG | Creating a Login/Register Dialog
#8

Quote:
Originally Posted by iRemix
Посмотреть сообщение
pawn Код:
/*     OnPlayerConnect     */
public OnPlayerConnect(playerid)
{
       /* Getting the players name */
       GetPlayerName(playerid, pName, sizeof(pName));
       /* Formatting the location of the file. */
       format(File, sizeof(File), FileLocation, pName);
       /* Checking if accounts exists. In this case it doesnt, so were going to show the register dialog */
       if(!dini_Exists(File))
       {
           format(Message, sizeof(Message), "Welcome %s,\n\nYou are new here please enter a new password to register!", pName);
           ShowPlayerDialog(playerid, DIALOG_REG, DIALOG_STYLE_INPUT, "Account | Register", Message, "Register", "Leave");
       }
       /* Checking if accounts exists. In this case it does, so were going to show the login dialog */
       if(dini_Exists(File))
       {
           format(Message, sizeof(Message), "Welcome back %s,\n\Please enter your password to login!", pName);
           ShowPlayerDialog(playerid, DIALOG_LOG, DIALOG_STYLE_INPUT, "Account | Login", Message, "Login", "Leave");
       }
       return 1;
}
I don't see any
pawn Код:
new Message[70];
anywhere..
Reply


Messages In This Thread
eG | Creating a Login/Register Dialog - by iRemix - 13.01.2011, 15:52
Re: eG | Creating a Login/Register Dialog - by iRemix - 13.01.2011, 17:17
Re: eG | Creating a Login/Register Dialog - by Parrot - 13.01.2011, 19:19
Re: eG | Creating a Login/Register Dialog - by [L3th4l] - 13.01.2011, 19:24
Re: eG | Creating a Login/Register Dialog - by iRemix - 14.01.2011, 15:32
Re: eG | Creating a Login/Register Dialog - by Hiddos - 14.01.2011, 15:38
Re: eG | Creating a Login/Register Dialog - by Parrot - 14.01.2011, 17:31
Re: eG | Creating a Login/Register Dialog - by WillyP - 14.01.2011, 19:44
Re: eG | Creating a Login/Register Dialog - by Retardedwolf - 14.01.2011, 19:46
Re: eG | Creating a Login/Register Dialog - by jcarlos206 - 27.02.2011, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)