SA-MP Forums Archive
Strange undefined errors..:-/ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Strange undefined errors..:-/ (/showthread.php?tid=491281)



Strange undefined errors..:-/ [Solved] - Gill - 30.01.2014

Solved!


Re: Strange undefined errors..:-/ - Shockey HD - 30.01.2014

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.


Re: Strange undefined errors..:-/ - Gill - 30.01.2014

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.