Raised This Month: $51 Target: $400
 12% 

New message started when msg '66' has not been sent yet


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-22-2018 , 14:24   Re: New message started when msg '66' has not been sent yet
Reply With Quote #21

Quote:
Originally Posted by Black Rose View Post
No, that code is now useless. It's only relevant when the crash occurs when a player dies. But since that code was posted the story changed. The first story was just fake news.
I'm working on a new one.
I was not aware of this, it really sucks when people keep changing their minds about what happens. Good luck.
__________________
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-22-2018 , 14:28   Re: New message started when msg '66' has not been sent yet
Reply With Quote #22

Code:
L 02/22/2018 - 18:15:51: [jb_lastrequest.amxx] g_iLastRequest[LR_PRISONER]: 0
L 02/22/2018 - 18:15:51: [jb_lastrequest.amxx] g_iLastRequest[LR_GUARD]: 0
PHP Code:
enum(+=1)// fix ur old enum into this
{
    
LR_PRISONER 0,
    
LR_GUARD

I think i found out the problem the duelers id's are not stored and are invalid.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-22-2018 at 14:36.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-22-2018 , 14:51   Re: New message started when msg '66' has not been sent yet
Reply With Quote #23

Quote:
Originally Posted by Natsheh View Post
Code:
L 02/22/2018 - 18:15:51: [jb_lastrequest.amxx] g_iLastRequest[LR_PRISONER]: 0
L 02/22/2018 - 18:15:51: [jb_lastrequest.amxx] g_iLastRequest[LR_GUARD]: 0
PHP Code:
enum(+=1)// fix ur old enum into this
{
    
LR_PRISONER 0,
    
LR_GUARD

I think i found out the problem the duelers id's are not stored and are invalid.
An enum's increment is (+= 1) by default, you don't have to set it explicitly. Read https://y-less.com/uploads/pawn-lang-3.0.3367.pdf page 92.
__________________
klippy is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-22-2018 , 17:29   Re: New message started when msg '66' has not been sent yet
Reply With Quote #24

Quote:
Originally Posted by KliPPy View Post
An enum's increment is (+= 1) by default, you don't have to set it explicitly. Read https://y-less.com/uploads/pawn-lang-3.0.3367.pdf page 92.
i didnt know it was by default, i use it just for safety.
__________________
@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
DoPe
Member
Join Date: Feb 2017
Old 02-23-2018 , 05:29   Re: New message started when msg '66' has not been sent yet
Reply With Quote #25

Thank you sir Natsheh, i think this code you gave me fixed the crash, i did some last reuqests and the server didn't crashed yet But i am not 100% sure, if i see the crash again ill tell you, for now lock the topic ant thanks.
DoPe is offline
DoPe
Member
Join Date: Feb 2017
Old 02-23-2018 , 12:32   Re: New message started when msg '66' has not been sent yet
Reply With Quote #26

EDIT* Server still crashes..
DoPe is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 02-23-2018 , 19:03   Re: New message started when msg '66' has not been sent yet
Reply With Quote #27

This should account for almost everything.
Post the result, preferably the complete log.

Last edited by Black Rose; 02-24-2018 at 10:14.
Black Rose is offline
DoPe
Member
Join Date: Feb 2017
Old 02-24-2018 , 05:03   Re: New message started when msg '66' has not been sent yet
Reply With Quote #28

I can't get the Last Request it shows me there are too many prisoners left while i am the only prisoner.
DoPe is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 02-24-2018 , 07:47   Re: New message started when msg '66' has not been sent yet
Reply With Quote #29

This is how that message is produced:
Code:
public Cmd_LastRequest( id ) {     else if( !g_bLastRequestAllowed )     {         ColorChat( id, NORMAL, "%s There are too many !tprisoners!n remaining to have a !gLast Request!n.", g_szPrefix );

These are the criteries to enable last request (setting g_bLastRequestAllowed to true):
Code:
public Ham_PlayerKilled_Post( iVictim, iKiller, iShouldGib ) {     if( !g_bLastRequestAllowed && cs_get_user_team( iVictim ) == CS_TEAM_T )     {         if( get_playercount( CS_TEAM_T, ALIVE ) == 1 )         {             g_bLastRequestAllowed = true;
Does it get called correctly? Is the playercount correct? I don't fucking know because I still don't have any logs even though I'm pretty sure I spent several hours last night making a version that would change that. Without the logs it is more or less the same as the previous version you were using. So logically for these logs to make a difference in this scenario one would need to see those logs.

I may very well have fucked something up making this version. But I'm still not gonna know what I did before I get the logs.

I'm gonna make this very simple for you. So far you have:
  • Posted in the wrong section
  • Changed the story about the error
  • Failed to follow simple directions several times
I'm getting pretty tired of this shit.
If the log is not attached in your next post I'm out.
__________________
Black Rose is offline
DoPe
Member
Join Date: Feb 2017
Old 02-24-2018 , 09:25   Re: New message started when msg '66' has not been sent yet
Reply With Quote #30

L 02/24/2018 - 12:01:18: [jb_lastrequest.amxx] plugin_init() called
L 02/24/2018 - 12:01:18: [jb_lastrequest.amxx] plugin_init() end
L 02/24/2018 - 12:01:19: [jb_lastrequest.amxx] Forward_EntityThink_Pre(iEnt: 104) called
L 02/24/2018 - 12:01:19: [jb_lastrequest.amxx] g_iCurrentGame: LR_NONE

I can't attach the file because its too large... like 10000 lines and more... But thats it whats in the log.
DoPe 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:14.


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