if(self.team) // weapon load display\r
{\r
if(self.owner.weapon_load[self.owner.switchweapon] <= 0)\r
- self.skin = 10; // unavailable\r
+ self.skin = 11; // unavailable digit\r
else\r
{\r
txt = ftos(self.owner.weapon_load[self.owner.switchweapon]);\r
txt = substring(txt, self.cnt - 1, 1);\r
- self.skin = stof(txt);\r
}\r
}\r
else // ammo display\r
{\r
txt = ftos(self.owner.(self.owner.current_ammo));\r
txt = substring(txt, self.cnt - 1, 1);\r
- self.skin = stof(txt);\r
}\r
\r
+ if(!txt || txt == "")\r
+ self.skin = 10; // empty digit\r
+ else\r
+ self.skin = stof(txt);\r
+\r
self.nextthink = time;\r
}\r
\r