Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by fordawinzz
Should I declare the threaded function if I don't use it at all? For instance, I want to update a table and I use this query:
pawn Код:
format(E_STRING[szVehicleUpdateString], sizeof E_STRING[szVehicleUpdateString], "UPDATE vehicles SET pos_x=%f, pos_y=%f, pos_z=%f, pos_a=%f, color1=%d, color2=%d, owner='%s', mileage=%f, gas=%d, locked=%d, vworld=%d, interior=%d WHERE plate='%s'", E_VEHICLE[data_saveid][vPosition][0], E_VEHICLE[data_saveid][vPosition][1], E_VEHICLE[data_saveid][vPosition][2], E_VEHICLE[data_saveid][vPosition][3], E_VEHICLE[data_saveid][vColors][0], E_VEHICLE[data_saveid][vColors][1], E_VEHICLE[data_saveid][vOwner], E_VEHICLE[data_saveid][vMileage], E_VEHICLE[data_saveid][vGas], E_VEHICLE[data_saveid][vLocked], E_VEHICLE[data_saveid][vVirtualWorld], E_VEHICLE[data_saveid][vInterior], E_VEHICLE[data_saveid][vPlate]); mysql_tquery(dbHandle, E_STRING[szVehicleUpdateString], "OnVehicleDataSave", "");
|
You can just use
Код:
mysql_tquery(dbHandle, E_STRING[szVehicleUpdateString]);
This will only send the UPDATE query and don't call any public function (since you don't specified one).