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

Help! Server crashing on timer start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mazmaajinsh
Senior Member
Join Date: Apr 2005
Location: Latvia
Old 03-27-2012 , 10:51   Help! Server crashing on timer start
Reply With Quote #1

Hello.
I am using Prokreedz 2.27 [ http://forums.alliedmods.net/showthread.php?t=130417 ] , but something is causing my server to crash when user clicks start button on "kz" maps. Could someone take a look at it?

This is the part of timersystem, which could be causing it. Maybe someone has any idea what to change there so it doesnt crash it? By crashing it I actually mean, that the servers sets itself in some kind of infinite loop and after a while crashes.
BTW: The server is not crashing on my LAN server (Windows XP) , but it crashes on public server which is running on Linux.


Code:
public fwdUse(ent, id) {     if( !ent || id > 32 )     {         return HAM_IGNORED;     }         if( !is_user_alive(id) )     {         return HAM_IGNORED;     }         new name[32]     get_user_name(id, name, 31)         new szTarget[ 32 ];     pev(ent, pev_target, szTarget, 31);         if( TrieKeyExists( g_tStarts, szTarget ) )     {         if ( get_gametime() - antihookcheat[id] < 3.0 )         {                kz_hud_message( id, "Wait 3 seconds after using hook" );             return PLUGIN_HANDLED         }         if ( reset_checkpoints(id) && !timer_started[id]  )         {             start_climb(id)                         if(get_pcvar_num(kz_strip_other_weapons) == 1)                 for(new i = 0; i < 8; i++)                      if( user_has_weapon(id, other_weapons[i])  )                     {                         strip_user_weapons(id)                         give_item(id,"weapon_knife")                         give_item(id,"weapon_usp")                         set_pdata_int(id, 382, 24, 5)                     }             if( pev(id, pev_health) < 100 )                 set_pev(id, pev_health, 100.0)             pev(id, pev_origin, SavedStart[id])             if(get_pcvar_num(kz_save_autostart) == 1)                 AutoStart[id] = true;             if( !DefaultStart )             {                 new mapname[64]                 get_mapname( mapname, 63)                 kz_set_start(mapname, SavedStart[id])                 ColorChat(id, GREEN, "[XJ]^x01 Start position set for this map.")             }             remove_hook(id)         }             }         if( TrieKeyExists( g_tStops, szTarget ) )     {         if( timer_started[id] )         {             finish_climb(id)             if(get_pcvar_num(kz_hook_prize) == 1 && !canusehook[id])             {                 canusehook[id] = true                 ColorChat(id, GREEN, "[XJ]^x01 Hook has been enabled, bind any key '+hook' to use it.")             }         }         else             kz_hud_message(id, "You must press the start button first")         }     return HAM_IGNORED }

And here is the full source - http://pastebin.com/e1GD91GN

I would appreciate your help!
__________________
Ahujena

Last edited by mazmaajinsh; 03-27-2012 at 10:52.
mazmaajinsh is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 03-27-2012 , 11:37   Re: Help! Server crashing on timer start
Reply With Quote #2

I don't see nothing wrong on that code. Try this plugins and tell me if still crashing.
Attached Files
File Type: sma Get Plugin or Get Source (prokreedz.sma - 721 views - 58.4 KB)
File Type: sma Get Plugin or Get Source (prokreedz_sql.sma - 717 views - 60.5 KB)

Last edited by bazhenov93; 03-27-2012 at 11:40.
bazhenov93 is offline
mazmaajinsh
Senior Member
Join Date: Apr 2005
Location: Latvia
Old 03-27-2012 , 11:49   Re: Help! Server crashing on timer start
Reply With Quote #3

Quote:
Originally Posted by bazhenov93 View Post
I don't see nothing wrong on that code. Try this plugins and tell me if still crashing.
Tried prokreedz_sql.amxx and prokreedz.amxx that you attached - both crashed when clicked start button.
__________________
Ahujena

Last edited by mazmaajinsh; 03-27-2012 at 11:51.
mazmaajinsh is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 03-27-2012 , 13:27   Re: Help! Server crashing on timer start
Reply With Quote #4

The problem is not the plugin. Is something with your dedicated server, try to update.

Last edited by bazhenov93; 03-27-2012 at 13:28.
bazhenov93 is offline
mazmaajinsh
Senior Member
Join Date: Apr 2005
Location: Latvia
Old 03-28-2012 , 04:09   Re: Help! Server crashing on timer start
Reply With Quote #5

It seems like that. But could someone like you all, more experienced, try and modify it so it uses a different function for timer?
__________________
Ahujena
mazmaajinsh is offline
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 12-18-2012 , 15:22   Re: Help! Server crashing on timer start
Reply With Quote #6

Perhaps it's as easy as the fact that you don't have privileges to the folders where those files are.

I'd just 'chmod 777' all the amxmodx and see if that fixes it.
__________________
My nickname is nucLeaR, I just screwed up at registering and didn't want to change after that X_X.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
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 14:17.


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