Raised This Month: $ Target: $400
 0% 

Function is crashing the server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Infra
Senior Member
Join Date: Aug 2004
Location: California
Old 10-13-2006 , 03:59   Re: Function is crashing the server
Reply With Quote #9

It seems the problem is in strip_user_weapons:

Log:

Code:
L 10/13/2006 - 01:01:24: Server cvar "sv_password" = "***PROTECTED***"
L 10/13/2006 - 01:01:24: "[CI]Infra<5><><>" started a match "mr10 cal.cfg "
L 10/13/2006 - 01:01:24: kniferound_start: before for
L 10/13/2006 - 01:01:24: kniferound_start: inside for #1, playerid = 2
L 10/13/2006 - 01:01:24: FATAL ERROR (shutting down): ED_Alloc: no free edicts
Code:
public kniferound_start() {     // HL     log_message("kniferound_start: before for")             // Server console     server_print("kniferound_start: before for")         new player     new players[32]     new players_num         new param[8]         // We are now in a knife round     main_inkniferound = 1         // Strip everybody's weapons     get_players(players, players_num, "a")             for(new i = 0; i < players_num; i++)     {         player = players[i]                 // HL         log_message("kniferound_start: inside for #1, playid = %d", player)                     // Server console         server_print("kniferound_start: inside for #1, playid = %d", player)                 // Strip user's weapons         strip_user_weapons(player)                 // HL         log_message("kniferound_start: inside for #2")                     // Server console         server_print("kniferound_start: inside for #2")                 // Give back the knife         param[0] = player         set_task(0.5, "kniferound_giveknife", 0, param, 8)                 // HL         log_message("kniferound_start: inside for #3")                     // Server console         server_print("kniferound_start: inside for #3")     }         // HL     log_message("kniferound_start: after for")             // Server console     server_print("kniferound_start: after for")             // Restart the round     misc_restart_round("1")                 return PLUGIN_CONTINUE } public kniferound_giveknife ( param[] ) {     // Give user a knife     give_item(param[0],"weapon_knife")         return PLUGIN_CONTINUE }

Just a note, this function isn't getting called in a ResetHud event...

Hmm...anyway....any ideas?
__________________
--Infra
Infra is offline
Send a message via AIM to Infra
 



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 04:50.


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