VehicleID
#2

Please

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;
}
But now he said VehicleID 0

Код:
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.
Reply


Messages In This Thread
VehicleID - by sjvt - 21.04.2012, 21:20
Re: VehicleID - by sjvt - 21.04.2012, 22:27
Re: VehicleID - by MP2 - 22.04.2012, 02:40
Re: VehicleID - by sjvt - 22.04.2012, 13:01
Re: VehicleID - by sjvt - 23.04.2012, 22:13

Forum Jump:


Users browsing this thread: 1 Guest(s)