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

Bug Report [SOLVED] ZP 4.3 - HLDS crashes during map changes (fm_cs_get_user_team)


Post New Thread Reply   
 
Thread Tools Display Modes
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 06-09-2011 , 22:37   Re: [SOLVED] Linux HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #21

Quote:
Originally Posted by yokomo View Post
When i patch "cs_get_user_team(id)" into fm_cs_get_user_team(id) stock it give me 1 warning when compiling. How get rid of this warning "tig tag match".
No worries, the fix should still work anyway. To avoid it just change
Code:
return cs_get_user_team(id);
to
Code:
return _:cs_get_user_team(id);
__________________

Last edited by MeRcyLeZZ; 06-11-2011 at 13:54.
MeRcyLeZZ is offline
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 06-09-2011 , 23:02   Re: [SOLVED] Linux HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #22

@Spanish
No sabia que se podia hacer tranformaciones de label,si es que se llama asi xD.
__________________
Destro- is offline
xixi
Member
Join Date: Nov 2010
Old 06-09-2011 , 23:44   Re: [SOLVED] Linux HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #23

thanks
__________________


[img]http://img217.**************/img217/2378/col2w.png[/img]
xixi is offline
Send a message via Yahoo to xixi Send a message via Skype™ to xixi
xixi
Member
Join Date: Nov 2010
Old 06-09-2011 , 23:49   Re: [SOLVED] Linux HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #24

Quote:
Originally Posted by bboygrun View Post
Read plz .

I have not found you code, but I found this code in zombie_plague40
Code:
// CS Teams
enum
{
	FM_CS_TEAM_UNASSIGNED = 0,
	FM_CS_TEAM_T,
	FM_CS_TEAM_CT,
	FM_CS_TEAM_SPECTATOR
}
new const CS_TEAM_NAMES[][] = { "UNASSIGNED", "TERRORIST", "CT", "SPECTATOR" }
Where did you find code in zombie_plague40???

Code:
enum CsTeams { 
 CS_TEAM_UNASSIGNED = 0, 
 CS_TEAM_T = 1, 
 CS_TEAM_CT = 2, 
 CS_TEAM_SPECTATOR = 3 
}; 
native CsTeams:cs_get_user_team(index, &{CsInternalModel,_}:model = CS_DONTCHANGE);
__________________


[img]http://img217.**************/img217/2378/col2w.png[/img]
xixi is offline
Send a message via Yahoo to xixi Send a message via Skype™ to xixi
DJHD!
Veteran Member
Join Date: Dec 2009
Location: Santiago, Chile
Old 06-10-2011 , 00:24   Re: [SOLVED] Linux HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #25

I can explain how to do it step by step?
my zombie plague is edited

Sorry for my bad english

Spanish:
MeRcyLeZZ

Me puedes decir bien como es para parchearlo es que mi zp esta re editado y necesito esto porque tambien se cae el server por ese error esta en linux el server.

Gracias.
__________________
Quote:
Originally Posted by XINLEI View Post
Porque rocccos trata de ser el metalicross que nunca va a poder ser.

Last edited by DJHD!; 06-10-2011 at 14:05.
DJHD! is offline
Send a message via MSN to DJHD!
CLLlAgOB
Senior Member
Join Date: Oct 2007
Location: Russia
Old 06-10-2011 , 01:59   Re: [SOLVED] Linux HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #26

mb just

Code:
// Get User Team
stock fm_cs_get_user_team(id)
{
    if(is_user_connected(id)) return get_pdata_int(id, OFFSET_CSTEAMS, OFFSET_LINUX);
    return -1
}
CLLlAgOB is offline
Freezet
Member
Join Date: Nov 2006
Old 06-10-2011 , 03:03   Re: [SOLVED] Linux HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #27

bag only for linux?
Freezet is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 06-10-2011 , 03:09   Re: [SOLVED] Linux HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #28

Quote:
Originally Posted by Freezet View Post
bug only for linux?
I think this happened on Windows too:
[HELP] HLDS crashes
__________________

Last edited by MeRcyLeZZ; 06-10-2011 at 03:12.
MeRcyLeZZ is offline
xixi
Member
Join Date: Nov 2010
Old 06-10-2011 , 07:52   Re: [SOLVED] HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #29

MeRcyLeZZ

- look, I changed as you said and gave me error
Code:
return cs_get_user_team(id);
to
Code:
return _:cs_get_user_team(id);
- I downloaded zombie_plague40_patched.sma and gave error

Code:
L 06/10/2011 - 11:32:47: Start of error session.
L 06/10/2011 - 11:32:47: Info (map "zm_vendetta") (file "addons/amxmodx/logs/error_20110610.log")
L 06/10/2011 - 11:32:47: [CSTRIKE] Invalid player 2
L 06/10/2011 - 11:32:47: [AMXX] Run time error 10 (plugin "zombie_plague40.amxx") (native "cs_get_user_team") - debug not enabled!
L 06/10/2011 - 11:32:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
__________________


[img]http://img217.**************/img217/2378/col2w.png[/img]
xixi is offline
Send a message via Yahoo to xixi Send a message via Skype™ to xixi
manafi
Senior Member
Join Date: Jun 2009
Old 06-10-2011 , 09:35   Re: [SOLVED] Linux HLDS crashes during map changes (fm_cs_get_user_team)
Reply With Quote #30

Quote:
Originally Posted by Freezet View Post
bag only for linux?
On win too
manafi 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 06:53.


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