Jump to content

Problema salvare Admin


SkyHD

Recommended Posts

Creezi un string, dupa care il formatezi:

new string[256], name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, 32);

mysql_format(SQL, string, 256, "UPDATE x1 SET `x2`='x3' WHERE `x4`='x5'", name);

mysql_tquery(SQL, string, 256, "", "");

 

x1 = Tabelul din baza de date in care ai toti jucatorii salvati.

x2 = Variabila care o ai in baza de date pentru a stoca valorile pentru admin.

x3 = Valoarea pe care doresti sa o setezi la x2.

x4 = Variabila care o ai pentru a stoca numele jucatorului.

x5 = Variabile string care afla numele acestuia in baza de date.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.