Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2020
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. (Te duci la pInfo, si definesti pGender)
  2. #define pGenderx
  3. function Update(playerid, type) {
  4. if(IsPlayerConnected(playerid)) {
  5. new var[120];
  6. switch(type) {
  7. case pGenderx: format(var, sizeof(var), "UPDATE `users` SET `Gender`='%d' WHERE `ID`='%d'",PlayerInfo[playerid][pGender], PlayerInfo[playerid][pSQLID]);
  8. return 1;
  9. }
  10. //te duci la loadplayeraccount sau cum il ai tu definit
  11. PlayerInfo[playerid][pGender] = cache_get_field_content_int(0, "Gender", SQL);
  12. //
  13. Dialog:DIALOG_GENDER(playerid, response):
  14. {
  15. if(!response)
  16. {
  17. ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_MSGBOX, "Inregistrare", "{FFFFFF}Precizeaza sexul pe care il are caracter-ul tau", "Barbat", "Femeie");
  18. }
  19. if(response)
  20. {
  21. PlayerInfo[playerid][pGender] = 1;
  22. Update(playerid, pGenderx);
  23. //SetPlayerSkin(playerid, 184); (skin-ul il setezi tu, nu stiu cum il ai definit)
  24. PlayerInfo[playerid][pGender] = 184;
  25. Update(playerid, pGenderx);
  26.  
  27. Dialog_Show(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, ">> Seteaza un E-mail", "Pentru a fi la curent cu tot ce se intampla cu acest server, te rugam sa introduci un e-mail", "Set", "Inchide");
  28.  
  29. return 1;
  30. }
  31. else
  32. {
  33. PlayerInfo[playerid][pSex] = 2;
  34. Update(playerid, pGenderx);
  35. //SetPlayerSkin(playerid, 226); (skin-ul il setezi tu, nu stiu cum il ai definit)
  36. PlayerInfo[playerid][pGender] = 226;
  37. Update(playerid, pGenderx);
  38.  
  39.  
  40. Dialog_Show(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, ">> Seteaza un E-mail", "Pentru a fi la curent cu tot ce se intampla cu acest server, te rugam sa introduci un e-mail", "Set", "Inchide");
  41.  
  42. return 1;
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement