View Single Post
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-21-2022 , 03:23   Re: Run time error 1
Reply With Quote #20

Can not reiterate enough check if player is connected instead of greater than 0 on reset function.


Code:
parachute_reset(id)
if(is_user_connected(id))
{
    new parachute = g_para_ent[id];

    if(parachute > 0)
    {
        entity_set_int(parachute, EV_INT_flags, FL_KILLME);
        call_think(parachute);
    }

    g_has_parachute[id] = false;
    g_para_ent[id] = 0;
}
__________________

Last edited by DJEarthQuake; 05-21-2022 at 03:24.
DJEarthQuake is offline