AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Functions Messing up (https://forums.alliedmods.net/showthread.php?t=10996)

Votorx 03-06-2005 21:07

Functions Messing up
 
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?

Votorx 03-07-2005 19:14

Hello?

xeroblood 03-07-2005 19:44

Why dont you post the whole code?

Votorx 03-07-2005 20:22

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.


All times are GMT -4. The time now is 13:57.

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