Raised This Month: $ Target: $400
 0% 

WeapPickup event crashes server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shino
Senior Member
Join Date: May 2006
Old 06-02-2006 , 10:57   WeapPickup event crashes server
Reply With Quote #1

here's litte bit of code:
Code:
public plugin_init() {     register_event("WeapPickup","SetKnife","b") } public SetKnife(index) {     new players[32],num,i     get_players(players,num)     for(i = 0; i <= num; i++) {         new id = players[i]         if (is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T) {             strip_user_weapons(id)             give_item(id,"weapon_knife")         }     } }

few seconds after freeze time expires, server crashes with ED:Alloc: no free edicts. i would be pleased if someone could help me
shino is offline
 



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:19.


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