07.09.2018, 03:53
pessoa estou com problema de mysql allguйm poderia me ajudar ?
O QUE TEM O 0 ALI DEVERIA ACOMPANHAR UMA ORDEM DE ID TIPO 5,6,7,8,9
Код:
[00:44:17] [DEBUG] mysql_format - connection: 1, len: 150, format: "INSERT INTO clan(name, x, y, z, skin) VALUES ('%s', %f, %f, %f, %d)" [00:44:17] [DEBUG] mysql_tquery - connection: 1, query: "INSERT INTO clan(name, x, y, z, skin) VALUES ('5asd', 2525.584, ", callback: "ClanCreation", format: "d" [00:44:17] [DEBUG] CMySQLQuery::Execute[ClanCreation] - starting query execution [00:44:18] [DEBUG] CMySQLQuery::Execute[ClanCreation] - query was successfully executed within 174.730 milliseconds [00:44:18] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [00:44:18] [DEBUG] Calling callback "ClanCreation".. [00:44:18] [DEBUG] cache_insert_id - connection: 1 [00:44:18] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
Код:
/* CLAN CREATION */ function CreateClan(name[], Float:X, Float:Y, Float:Z, skin) { new nameofclan[64]; format(nameofclan, sizeof(nameofclan), "%s", name); ClanInfo[clans][cName] = nameofclan; ClanInfo[clans][cX] = X; ClanInfo[clans][cY] = Y; ClanInfo[clans][cZ] = Z; ClanInfo[clans][cSkin] = skin; clans++; new query[150]; mysql_format(db, query, sizeof(query), "INSERT INTO clan(name, x, y, z, skin) VALUES ('%s', %f, %f, %f, %d)", name, X, Y, Z, skin); mysql_tquery(db, query, "ClanCreation", "d", clans); } function ClanCreation(clan) { ClanInfo[clan][ID] = cache_insert_id(); }