22.07.2017, 18:35
Bom esta dando erro ao criar....
e:
no mysql_log:
PHP код:
new Query[100];
mysql_format(IDConexao, Query, sizeof(Query), "INSERT INTO `Label`(`Texto`=%s, `LabelX`=%f, `LabelY`=%f, `LabelZ`=%f)", inputtext, Pos[0], Pos[1], Pos[2]);
mysql_tquery(IDConexao, Query, "Dados1", "i", playerid);
SendClientMessage(playerid, 0x00FF80AA, "Label Criado!");}
PHP код:
forward Dados1(playerid);
public Dados1(playerid)
{
PlayerInfo[playerid][lID] = cache_insert_id();
printf("DEBUG- Novo label registrado ID: %d", PlayerInfo[playerid][lID]);
return 1;
}
PHP код:
[15:23:01 07/22/17] [ERROR] CMySQLQuery::Execute[Dados1] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '={FF0000}> Hello <, `LabelX`=132.0, `LabelY`=-67.291, `LabelZ`=1.578)' at line 1 (Query: "INSERT INTO `Label`(`Texto`={FF0000}> Hello <, `LabelX`=132.0, `LabelY`=-67.291, `LabelZ`=1.578)")