20.03.2014, 19:42
So i tried to make a little test script, to check out MySQL R38 plugin. Problem is with updating player data, when he disconnects. I have tried, to increase sizeof query, but nothing changed.
pawn Код:
mysql_format(mysql,query,sizeof(query),"UPDATE playerid SET pX='%f',pY='%f', pZ='%f' WHERE MysqlID=%d",x,y,z,alevel,sqlid);
mysql_tquery(mysql,query);
pawn Код:
[21:46:00] [DEBUG] mysql_format - connection: 1, len: 128, format: "UPDATE playerid SET pX='%f',pY='%f', pZ='%f' WHERE MysqlID=%d"
[21:46:00] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE playerid SET pX='867.628723',pY='-11.248103', pZ='63.1953", callback: "(null)", format: "(null)"