Raised This Month: $ Target: $400
 0% 

Run time error 1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-21-2022 , 03:32   Re: Run time error 1
Reply With Quote #1

Quote:
Originally Posted by DJEarthQuake View Post
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;
}
I don't need to check if user is connected because this won't solve any problem, show where in the code i used parachute_reset and the id parameter might not be a player index
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode