01.08.2017, 00:25
hello guys its me again and i have a problem which i didnt have before.
When players do "/q" all of you know onplayerdisconnect happens.
Well its like my onplayerdisconnect doesnt happen because it doesnt save the player information and it doesnt save the vehicle information.
i have a command "/saveme" it calls a public function called q2.
And also my onplayerdisconect calls the same public function called q2 too.
The weird thing here is "/saveme" actually saves in database but when it comes to on player disconnect, it doesnt do anything. anyone has any idea ?
also this car save script gives error too saying i have syntax error, which i really cant see
When players do "/q" all of you know onplayerdisconnect happens.
Well its like my onplayerdisconnect doesnt happen because it doesnt save the player information and it doesnt save the vehicle information.
i have a command "/saveme" it calls a public function called q2.
And also my onplayerdisconect calls the same public function called q2 too.
The weird thing here is "/saveme" actually saves in database but when it comes to on player disconnect, it doesnt do anything. anyone has any idea ?
also this car save script gives error too saying i have syntax error, which i really cant see
Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `Vehicles` SET `vehModel` = %i, `vehPlate` = '%e', `vehMod_1` = %i, `vehMod_2` = %i, `vehMod_3` = %i, `vehMod_4` = %i, `vehMod_5` = %i,\ `vehMod_6` = %i, `vehGun1` = %i, `vehGun2` = %i, `vehGun3` = %i, `vehAmmo1` = %i, `vehAmmo2` = %i, `vehAmmo3` = %i WHERE `vehID` = %d", vInfo[vehicleid][vehModel], vInfo[vehicleid][vehPlate], vInfo[vehicleid][vehMod][0], vInfo[vehicleid][vehMod][1], vInfo[vehicleid][vehMod][2], vInfo[vehicleid][vehMod][3], vInfo[vehicleid][vehMod][4], vInfo[vehicleid][vehMod][5], vInfo[vehicleid][vehID],vInfo[vehicleid][vehGun1],vInfo[vehicleid][vehGun2],vInfo[vehicleid][vehGun3], vInfo[vehicleid][vehAmmo1],vInfo[vehicleid][vehAmmo2],vInfo[vehicleid][vehAmmo3]); mysql_query(mysql, query);