Jump to content
  • 0

MYSQL Ajutor


Vespa97

Question

case DIALOG_Varsta:
        {
            if(!response) return Kick(playerid);
            if(response)
            {
                new variable= strval(inputtext);
                mysql_format(handle, query, sizeof(query), "UPDATE `jucatori`  WHERE `Nume`='%e' SET `Varsta` = '%d' ",GetName(playerid),variable);// se insereaza in tabelul cu conturi numele playerului, parola pe care a scris-o si ip pe care il are
                mysql_query(handle, query);
				SpawnPlayer(playerid);
            }
            return 1;
        }

Ce este gresit?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Se posteaza la ajutor scripting unde ai un model, si ce nu iti face? Daca nu iti salveaza varsta introdusa este de aici

Inlocuiesti

sizeof(query), "UPDATE `jucatori`  WHERE `Nume`='%e' SET `Varsta` = '%d' ",GetName(playerid),variable);

Si faci asa

sizeof(query), "UPDATE `jucatori`  WHERE `Nume`='%e' SET `Varsta` = '%d' ",GetName(playerid),inputtext);

 

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
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
Answer this question...

×   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.