Raised This Month: $ Target: $400
 0% 

Fatal Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jim_yang
Veteran Member
Join Date: Aug 2006
Old 12-24-2006 , 23:47   Re: Fatal Error
Reply With Quote #1

don't do this
if( a== 1 | 2 | 3 | 4 | 5 ...)
you can
switch(a)
case 1,2,3,4,5: return true
default: return false
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-25-2006 , 00:18   Re: Fatal Error
Reply With Quote #2

Are you talking about the check all weapon function I did ? With the | . I was looking for a more efficiiant way to do that . I can use a switch with that many choices on one case ?

Ok what about the fatal error "NO FREE EDICTS" . Any ideas ?

EDIT: why wont this work ?
Code:
stock drop_primary_weapon(id) {  new clip,bpammo;  new Weapon = get_user_weapon(id,clip,bpammo);    switch(Weapon)  {   case  CSW_SCOUT,CSW_XM1014,CSW_MAC10,CSW_AUG,CSW_UMP45,CSW_SG550,CSW_GALIL,CSW_FAMAS,CSW_AWP,   CSW_MP5NAVY,CSW_M249,CSW_M3,CSW_M4A1,CSW_TMP,CSW_G3SG1,CSW_SG552,CSW_AK47,   CSW_P90:  client_cmd(id,"+drop") return true;   default: return false;  } }

Last edited by The Specialist; 12-25-2006 at 00:38.
The Specialist is offline
Send a message via AIM to The Specialist
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 22:22.


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