Strange undefined errors..:-/
#1

Solved!
Reply
#2

pawn Код:
stock UpdateGroupVehicleParkPosition(groupvehicleid, Float:newx, Float:newy, Float:newz, Float:newangle, VW, Int)
{
    if(GetVehicleModel(DynVehicleInfo[DynVeh[groupvehicleid]][gv_iSQLID] != INVALID_GROUP_ID))
    {
        new Float:oldx, Float:oldy, Float:oldz;
        oldx = DynVehicleInfo[DynVeh[groupvehicleid]][gv_fX];
        oldy = DynVehicleInfo[DynVeh[groupvehicleid]][gv_fY];
        oldz = DynVehicleInfo[DynVeh[groupvehicleid]][gv_fZ];

        if(oldx == newx && oldy == newy && oldz == newz)
        {
       
        }
        else
        {
            DynVehicleInfo[DynVeh[groupvehicleid]][gv_fX] = newx;
            DynVehicleInfo[DynVeh[groupvehicleid]][gv_fY] = newy;
            DynVehicleInfo[DynVeh[groupvehicleid]][gv_fZ] = newz;
            DynVehicleInfo[DynVeh[groupvehicleid]][gv_fRotZ] = newangle;
            DynVehicleInfo[DynVeh[groupvehicleid]][gv_iVW] = VW;
            DynVehicleInfo[DynVeh[groupvehicleid]][gv_iInt] = Int;
            UpdateGroupVehicleMods(DynVeh[groupvehicleid]);
            DynVeh_Save(DynVeh[groupvehicleid]);
        }
    }
    return 1
}
Tell me what this gets you.

Also please add the error lines and point out which lines are which so its easier.
Reply
#3

Quote:
Originally Posted by Shockey HD
Посмотреть сообщение
pawn Код:
Code..
Tell me what this gets you.

Also please add the error lines and point out which lines are which so its easier.
Stupid me, I forgot to add brackets ;c , Thank you, errors are gone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)