[11:43:50] >> mysql_query( Connection handle: 1 ) [11:43:50] CMySQLHandler::Query(UPDATE `server_vehicles` SET `VehicleOwner`='For Sale', `VehiclePurchased`='0' WHERE `VehicleID` = '1') - Successfully executed. [12:01:22] >> mysql_query( Connection handle: 1 ) [12:01:22] CMySQLHandler::Query(UPDATE `server_vehicles` SET `VehicleOwner`='For Sale', `VehiclePurchased`='0' WHERE `VehicleID` = '2') - Successfully executed.
[23:18:37] >> mysql_query( Connection handle: 1 ) [23:18:37] CMySQLHandler::Query(UPDATE `server_vehicles` SET `VehicleOwner`='For Sale', `VehiclePurchased`='0' WHERE `VehicleID` = '44') - Successfully executed. [23:18:46] >> mysql_query( Connection handle: 1 ) [23:18:46] CMySQLHandler::Query(UPDATE `server_vehicles` SET `VehicleOwner`='For Sale', `VehiclePurchased`='0' WHERE `VehicleID` = '43') - Successfully executed.
new vehicleidx = GetPlayerVehicleID(playerid);
//This
new vehicleidx = GetPlayerVehicleID(playerid);
//To
new vehicleidx = GetVehicleID(GetPlayerVehicleID(playerid));
// And then stock
GetVehicleID(vehicleid) {
new id;
for(new x = 1; x < MAX_VEHICLES; x++) {
if(VehicleInfo[x][VehID] == vehicleid)
{
id = x;
break;
}
}
return id;
}
00:31:11] >> mysql_query( Connection handle: 1 ) [00:31:11] CMySQLHandler::Query(UPDATE `server_vehicles` SET `VehicleOwner`='For Sale', `VehiclePurchased`='0' WHERE `VehicleID` = '0') - Successfully executed.
Wait what?
GetVehicleID(vehicleid)? Do you realise how stupid that sounds? |