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

Functions Messing up


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Votorx
Senior Member
Join Date: Jun 2004
Old 03-06-2005 , 21:07   Functions Messing up
Reply With Quote #1

Code:
new ammo = MaxBPAmmo(weaponid) cs_set_user_bpammo(id, weaponid, ammo) public MaxBPAmmo(wpnid) {     switch (wpnid) {         case CSW_P228         : return 52         case CSW_SCOUT      : return 90         case CSW_HEGRENADE    : return 1         case CSW_XM1014   : return 32         case CSW_C4    : return 0         case CSW_MAC10      : return 100         case CSW_AUG            : return 90         case CSW_SMOKEGRENADE   : return 1         case CSW_ELITE      : return 120         case CSW_FIVESEVEN    : return 100         case CSW_UMP45      : return 100         case CSW_SG550      : return 90         case CSW_GALI         : return 90         case CSW_FAMAS      : return 90         case CSW_USP            : return 100         case CSW_GLOCK18        : return 120         case CSW_AWP            : return 30         case CSW_MP5NAVY        : return 120         case CSW_M249         : return 200         case CSW_M3    : return 21         case CSW_M4A1         : return 90         case CSW_TMP            : return 120         case CSW_G3SG1      : return 90         case CSW_FLASHBANG    : return 2         case CSW_DEAGLE   : return 35         case CSW_SG552      : return 90         case CSW_AK47         : return 90         case CSW_KNIFE      : return 0         case CSW_P90            : return 100         default                 : return 0     }     return 0 }

Sometimes it work sometimes it doesn't and other times it'll freeze the hlds. Anyone know how I can fix that?
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
Votorx
Senior Member
Join Date: Jun 2004
Old 03-07-2005 , 19:14  
Reply With Quote #2

Hello?
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-07-2005 , 19:44  
Reply With Quote #3

Why dont you post the whole code?
xeroblood is offline
Send a message via MSN to xeroblood
Votorx
Senior Member
Join Date: Jun 2004
Old 03-07-2005 , 20:22  
Reply With Quote #4

Well if you want to look at the whole code it is in the plugin section under Spectator_Fun but this is the only part of the code that is messing up, trust me.
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
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 03:26.


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