02.11.2014, 15:36
Код:
stock SalvandoContas(playerid) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); PlayerInfo[playerid][pPos][0] = x; PlayerInfo[playerid][pPos][1] = y; PlayerInfo[playerid][pPos][2] = z; new pname[24]; GetPlayerName(playerid, pname, 24); mysql_format(Pipeline, szQuery, sizeof(szQuery), "UPDATE accounts SET PosX=%f, PosY=%f, PosZ=%f WHERE Username='%s'", PlayerInfo[playerid][pPos][0], PlayerInfo[playerid][pPos][1], PlayerInfo[playerid][pPos][2], pname); mysql_tquery(Pipeline, szQuery, "", ""); return 1; }
Код:
[14:26:25] [DEBUG] mysql_format - connection: 1, len: 2048, format: "UPDATE accounts SET PosX=%f, PosY=%f, PosZ=%f WHERE Username='%s'" [14:26:25] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE accounts SET PosX=-2756.19, PosY=375.574, PosZ=4.335 WHER", callback: "(null)", format: "(null)" [14:26:25] [DEBUG] CMySQLQuery::Execute[] - starting query execution [14:26:25] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 57.907 milliseconds [14:26:25] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving