MySQL problem
#1

Ugh, why is this not inserting anything in the mysql?
PHP код:
else if(strcmp(param"create"true) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] >= 3)
        {
            new 
Float:xFloat:yFloat:zdstring[180], DB_Query[180];
            
GetPlayerPos(playeridxyz);
            if(
ex == (-1) || ey == (-1) || ez == (-1)) return SCM(playeridCOLOR_GREY"/druglab create <ExitXPos>, <ExitYPos>, <ExitZPos>, <Name>");
            
mysql_format(DatabaseDB_Querysizeof(DB_Query), "INSERT INTO `DrugLabs` ( `Name`, `ExitX`, `ExitY`, `ExitZ`, `EntranceX`, `EntranceY`, `EntranceZ`)\
            VALUES ( %s, %f, %f, %f, %f, %f, %f)"
nameexeyezxyz);
             
mysql_tquery(DatabaseDB_Query);
             
format(dstringsizeof(dstring), "Druglab created | Name: %s "name);
             
SCM(playeridCOLOR_YELLOWdstring);
        }
    } 
The command is working because I get the message with the name when I use it but nothing is inserting in the database.
Reply


Messages In This Thread
MySQL problem - by AndreiWow - 12.02.2017, 10:46
Re: MySQL problem - by Vince - 12.02.2017, 10:52
Re: MySQL problem - by AndreiWow - 12.02.2017, 10:53
Re: MySQL problem - by jlalt - 13.02.2017, 13:29
Respuesta: MySQL problem - by Eloy - 13.02.2017, 14:02
Re: MySQL problem - by JesterlJoker - 13.02.2017, 14:24
Re: MySQL problem - by AndySedeyn - 13.02.2017, 18:13

Forum Jump:


Users browsing this thread: 1 Guest(s)