ORM Pos not update! [++REP]
#2

pawn Код:
Veh[vehicleid][ID] = cache_insert_id();
static const Float:vp[][] =
{
    { 238.5601,-1536.6544,24.2187,53.8474 },
    { 188.0786,-1522.2850,24.2187,234.5494 },
    { 897.5580,-2508.5419,24.2187,235.4181 }
};
new rand = random(sizeof(vp));
new did = Veh[vehicleid][ID];
Veh[did][ServerID] = CreateVehicle(dmodelid[playerid], vp[rand][0], vp[rand][1], vp[rand][2], vp[rand][3], 1, 1, -1);
Veh[did][PosX] = vp[rand][0];
Veh[did][PosY] = vp[rand][1];
Veh[did][PosZ] = vp[rand][2];
Veh[did][VAngle] = vp[rand][3];
orm_update(Veh[did][ORM_ID]);
Reply


Messages In This Thread
ORM Pos not update! [++REP] - by norton2 - 20.09.2015, 13:48
Re: ORM Pos not update! [++REP] - by Jefff - 20.09.2015, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)