21.04.2012, 22:27
Please
i did try this
But now he said VehicleID 0
i did try this
pawn Код:
//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.

