Szerző Téma: PPC Trucking jelszó mutatás  (Megtekintve 785 alkalommal)

PPC Trucking jelszó mutatás
« Dátum: 2016. Július 02. - 16:09:56 »
0 Show voters
Sziasztok. Van egy kamionos modom, de nemtudom, hogy a jelszót hogy tüntessem eé, úgy hogy kipontozza. mert sehol nemtalálok olyat hogy DIALOG TITLE meg semmi

Dupla hozzászólás automatikusan összefûzve. ( 2016. Július 02. - 16:22:14 )

// Store the password
         format(APlayerData[playerid][PlayerPassword], 50, \"%s\", inputtext);
« Utoljára szerkesztve: 2016. Július 02. - 16:22:14 írta NobodyCares »

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
PPC Trucking jelszó mutatás
« Válasz #1 Dátum: 2016. Július 02. - 16:27:23 »
0 Show voters
Erre cseréld le titlet módba vagy a dialog inc be kell legyen
DIALOG_STYLE_PASSWORD,

PPC Trucking jelszó mutatás
« Válasz #2 Dátum: 2016. Július 02. - 16:43:00 »
0 Show voters
Az inceket beágyaztam a modba. GMbe van minden inc

Dupla hozzászólás automatikusan összefûzve. ( [time]2016. július 02. 16:44:58[/time] )

// Process the login-dialog
Dialog_Login(playerid, response, inputtext[])
{
switch (response) // Check which button was clicked
{
    case 1: // Player clicked \"Login\"
{
   // Check if the player entered a password
   if (strlen(inputtext) > 0)
   {
      // Check if the entered password is the same as the password saved in the player\'s account
       if (strcmp(APlayerData[playerid][PlayerPassword], inputtext, false) == 0)
      {
         APlayerData[playerid][LoggedIn] = true; // The player has logged in properly
                    BankFile_Load(playerid); // Load your bank account (if it exists, the player will be notified about this)
         SendClientMessage(playerid, 0xFFFFFFFF, TXT_LoggedIn); // Send a message to the client to inform him that he logged in properly
      }
      else
      {
         SendClientMessage(playerid, 0xFFFFFFFF, TXT_WrongPassword);
         Kick(playerid);
      }
   }
   else
   {
      SendClientMessage(playerid, 0xFFFFFFFF, TXT_WrongPassword);
      Kick(playerid);
   }
}
    case 0: // Player clicked \"Cancel\"
{
   // Show a message that the player must be logged in to play on this server
   SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerMustLogin);
    // Kick the player
   Kick(playerid);
}
}
return 1;
}

 

Dupla hozzászólás automatikusan összefûzve. ( 2016. Július 02. - 16:45:20 )

Itt hogy cseréljem ki? errorozik
« Utoljára szerkesztve: 2016. Július 02. - 16:45:20 írta NobodyCares »

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
PPC Trucking jelszó mutatás
« Válasz #3 Dátum: 2016. Július 02. - 16:50:00 »
0 Show voters
OnPlayerConnect alatt van!

PPC Trucking jelszó mutatás
« Válasz #4 Dátum: 2016. Július 02. - 16:51:45 »
0 Show voters
ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_INPUT, TXT_DialogLoginTitle, TXT_DialogLoginMsg, TXT_DialogLoginButton1, TXT_DialogButtonCancel);
else // Player is still banned
{
   ShowRemainingBanTime(playerid); // Show the remaining ban-time to the player is days, hours, minutes, seconds
   Kick(playerid); // Kick the player
}
}
else
ShowPlayerDialog(playerid, DialogRegister, DIALOG_STYLE_INPUT, TXT_DialogRegisterTitle, TXT_DialogRegisterMsg, TXT_DialogRegisterButton1, TXT_DialogButtonCancel);

 
Megvan :D az onplayerconnect alatt volt

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal