Raised This Month: $32 Target: $400
 8% 

Run time error 1


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

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
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-21-2022 , 06:32   Re: Run time error 1
Reply With Quote #22

More information I am using ReHLDS and Orpheu ( Infinite Round + Round terminator )

Code:
exit(139): It indicates Segmentation Fault which means that the program was trying to access a memory location not allocated to it. This mostly occurs while using pointers or trying to access an out-of-bounds array index.
The crash happens most of the times at round_end ?
Attached Files
File Type: sma Get Plugin or Get Source (infinite_round.sma - 37 views - 36.2 KB)
File Type: sma Get Plugin or Get Source (round_terminator.sma - 34 views - 36.9 KB)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 05-21-2022 at 06:32.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 05-21-2022 , 10:47   Re: Run time error 1
Reply With Quote #23

Quote:
Originally Posted by Natsheh View Post
More information I am using ReHLDS and Orpheu ( Infinite Round + Round terminator )

Code:
exit(139): It indicates Segmentation Fault which means that the program was trying to access a memory location not allocated to it. This mostly occurs while using pointers or trying to access an out-of-bounds array index.
The crash happens most of the times at round_end ?
In round_terminator.sma:
PHP Code:
m_fRoundCount
m_bFirstConnected
m_fTeamCount 
this member has been deprecated so it won't return any value:
https://github.com/s1lentq/ReGameDLL...merules.h#L701
https://github.com/s1lentq/ReGameDLL...merules.h#L775
https://github.com/s1lentq/ReGameDLL...merules.h#L699
etc.
You should get the proper return values and try debug them.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 05-21-2022 at 10:48.
Shadows Adi is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-21-2022 , 12:51   Re: Run time error 1
Reply With Quote #24

I am not using regamedll only ReHLDS
__________________
@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
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-23-2022 , 06:28   Re: Run time error 1
Reply With Quote #25

Quote:
Originally Posted by Natsheh View Post
Code:
L 05/10/2022 - 18:46:03: Start of error session.
L 05/10/2022 - 18:46:03: Info (map "jb_oasis") (file "addons/amxmodx/logs/error_20220510.log")
L 05/10/2022 - 18:46:03: [AMXX] Plugin ("jb_parachute.amxx") is setting itself as failed.
L 05/10/2022 - 18:46:03: [AMXX] Plugin says:  jb_oasis
L 05/10/2022 - 18:46:03: [AMXX] Run time error 1 (plugin "jb_parachute.amxx") - forced exit
Quote:
Originally Posted by Natsheh View Post
L 05/20/2022 - 08:27:18: Invalid player id 77

Quote:
Originally Posted by Natsheh View Post
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
This was right before the run-time error 1 with how many players and bots? Does server crash without the parachute that does not have @KRoTaL credit in it?
__________________
DJEarthQuake is offline
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 16:50.


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