MySQL query crashes my server
#7

I've tried with strcat and it's still crashing.
pawn Код:
format(query, sizeof(query), "UPDATE `businesses` SET `Type`='%d', `Owner`='%e', `Name`='%e', `Locked`='%d', `X`='%.2f', ",\
        BizInfo[i][Type], BizInfo[i][Owner], BizInfo[i][Name], BizInfo[i][Locked], BizInfo[i][Position][0]);
        new string[128];
        format(string, sizeof(string), "`Y`='%.2f', `Z`='%.2f', `Price`='%d' WHERE `ID`='%d'",\
        BizInfo[i][Position][1], BizInfo[i][Position][2], BizInfo[i][Price], BizInfo[i][ID]);
       
        strcat(query, string);
        mysql_tquery(mysql, query, "", "");
EDIT: I tried to update only one field with only one query, and it's still crashing.
pawn Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `businesses` SET `Type`='%d' WHERE `ID`='%d'",\
        BizInfo[i][Type], BizInfo[i][ID]);
        mysql_tquery(mysql, query, "", "");
Reply


Messages In This Thread
MySQL query crashes my server - by dominik523 - 09.05.2015, 11:59
Re: MySQL query crashes my server - by Luis- - 09.05.2015, 12:00
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 12:09
Re: MySQL query crashes my server - by Luis- - 09.05.2015, 12:10
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 12:22
Re: MySQL query crashes my server - by Konstantinos - 09.05.2015, 12:25
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 12:51
Re: MySQL query crashes my server - by Konstantinos - 09.05.2015, 13:45
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 13:53
Re: MySQL query crashes my server - by Konstantinos - 09.05.2015, 13:59
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 14:04
Re: MySQL query crashes my server - by Konstantinos - 09.05.2015, 14:17
Re: MySQL query crashes my server - by PowerPC603 - 09.05.2015, 15:34
Re: MySQL query crashes my server - by dominik523 - 09.05.2015, 16:38

Forum Jump:


Users browsing this thread: 7 Guest(s)