Jump to content

Question

Posted
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?

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.