19.01.2018, 03:36
if i use this it working
but im use like that it not working save data what wrong with my script ?
PHP код:
new SoDL[300];
mysql_format(VungDuLieu, SoDL, sizeof(SoDL), "UPDATE `TaiKhoan` SET \
`TenTK`='%s', \
`CapDo`=%d, \
`CapAdmin`=%d, \
`NhanVat`=%d, \
`TiLeChet`=%d, \
`TiLeGiet`=%d, \
`Tien`=%d, \
WHERE `ID`=%d",
TaiKhoan[playerid][TenTK],
TaiKhoan[playerid][CapDo],
TaiKhoan[playerid][CapAdmin],
TaiKhoan[playerid][NhanVat],
TaiKhoan[playerid][TiLeChet],
TaiKhoan[playerid][TiLeGiet],
TaiKhoan[playerid][Tien],
TaiKhoan[playerid][IDDuLieu]);
mysql_tquery(VungDuLieu, SoDL, "LuuTaiKhoan","d", playerid);
PHP код:
mysql_format(VungDuLieu, SoDL, sizeof(SoDL), "UPDATE `TaiKhoan` SET \
`TenTK`='%s', \
`CapDo`=%d, \
`CapAdmin`=%d, \
`NhanVat`=%d, \
`TiLeChet`=%d, \
`TiLeGiet`=%d, \
`Tien`=%d, \
`Unit`=%d, \
`Mau`=%f, \
`Giap`=%f, \
`KGTK`=%d, \
`VTKG`=%d, \
`ViTriNCX`=%f, \
`ViTriNCY`=%f, \
`ViTriNCZ`=%f, \
`ChipKN`=%d, \
`ViTriNCC`=%f, \
WHERE `ID`=%d",
TaiKhoan[playerid][TenTK],
TaiKhoan[playerid][CapDo],
TaiKhoan[playerid][CapAdmin],
TaiKhoan[playerid][NhanVat],
TaiKhoan[playerid][TiLeChet],
TaiKhoan[playerid][TiLeGiet],
TaiKhoan[playerid][Tien],
TaiKhoan[playerid][Unit],
TaiKhoan[playerid][MauNC],
TaiKhoan[playerid][GiapNC],
TaiKhoan[playerid][VTKG],
TaiKhoan[playerid][KGTK],
TaiKhoan[playerid][ViTriNCX],
TaiKhoan[playerid][ViTriNCY],
TaiKhoan[playerid][ViTriNCZ],
TaiKhoan[playerid][ChipKN],
TaiKhoan[playerid][ViTriNCC],
TaiKhoan[playerid][IDDuLieu]);
mysql_tquery(VungDuLieu, SoDL, "LuuTaiKhoan","d", playerid);