Guest User

ERROR

a guest
Dec 7th, 2011
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3. if(dialogid == LOGIN)
  4. {
  5. if(response == 0)
  6. {
  7. SendClientMessage (playerid,ORANGE,"Du hast den Login Vorgang abgebrochen");
  8. Kick(playerid);
  9. return 1;
  10.  
  11. }
  12. if(response == 1)
  13. {
  14. Login(playerid,MD5_Hash(inputtext));
  15. return 1;
  16. }
  17. }
  18. if(dialogid == REGISTER)
  19. {
  20. if(response == 0)
  21. {
  22. SendClientMessage(playerid,GREEN,"Du hast Den Vorgang Abgebrochen");
  23. Kick(playerid);
  24. }
  25. if(response == 1)
  26. {
  27. if(!strlen(inputtext))
  28. {
  29. SendClientMessage(playerid,ORANGE,"Bitte gebe ein Passwort ein!");
  30. ShowPlayerDialog(playerid,REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib Bitte Das gewünschte Passwort ein.","Register","Abbrechen");
  31.  
  32. }
  33. Register(playerid,MD5_Hash(inputtext));
  34. return 1;
  35. }
  36.  
  37. }
  38. return 1;
  39.  
Advertisement
Add Comment
Please, Sign In to add comment