Advertisement
Guest User

MySQL Problem

a guest
Mar 23rd, 2020
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.12 KB | None | 0 0
  1. Dialog:DIALOG_GENDER(playerid, response){
  2.     if(response){
  3.         new gString[64], string[256];
  4.         mysql_format(SQL, gString, sizeof(gString), "UPDATE `users` SET `gender`='0', `model`='26' WHERE `name`='%s'", GetName(playerid));
  5.         mysql_query(SQL, gString);
  6.        
  7.         format(string, sizeof(string), ""#COL_SERVER">> "#COL_WHITE"Sex setat: Masculin");
  8.         SCM(playerid, -1, string);
  9.        
  10.         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");
  11.     } else {
  12.         new gString[64], string[256];
  13.         mysql_format(SQL, gString, sizeof(gString), "UPDATE `users` SET `gender`='1', `model`='90' WHERE `name`='%s'", GetName(playerid));
  14.         mysql_query(SQL, gString);
  15.  
  16.         format(string, sizeof(string), ""#COL_SERVER">> "#COL_WHITE"Sex setat: Feminin");
  17.         SCM(playerid, -1, string);
  18.         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");
  19.     }
  20.     return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement