Raised This Month: $ Target: $400
 0% 

cs_set_user_armor / cs_get_user_armor


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-11-2006 , 08:46   cs_set_user_armor / cs_get_user_armor
Reply With Quote #1

Code:
    new CsArmorType:ArmorType new iArmor = cs_get_user_armor(id, ArmorType) cs_set_user_armor(id, iArmor + value, ArmorType)

I get a loose indentation. Anyone know why?
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-11-2006 , 09:24  
Reply With Quote #2

Code around it?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-11-2006 , 15:55  
Reply With Quote #3

Code:
add_armor(id, value) {   new CsArmorType:ArmorType   new iArmor = cs_get_user_armor(id, ArmorType)   cs_set_user_armor(id, iArmor + value, ArmorType) }

Code:
public test(id) {   cs_set_user_armor(id, 100, CS_ARMOR_KEVLAR)   add_armor(id, 100) }
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 05-11-2006 , 16:05  
Reply With Quote #4

Code:
cs_set_user_armor(id, (iArmor + value), ArmorType)

Try that?
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-11-2006 , 16:07  
Reply With Quote #5

Didnt help.

The warning starts at
Code:
new iArmor = cs_get_user_armor(id, ArmorType)
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-11-2006 , 16:09  
Reply With Quote #6

Code:
#include <cstrike> public add_armor(id, value) {   new CsArmorType:ArmorType   new iArmor = cs_get_user_armor(id, ArmorType)   cs_set_user_armor(id, iArmor + value, ArmorType) }

Compiles fine m8...
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-11-2006 , 16:16  
Reply With Quote #7

Thats really wierd. I must have a buggy complier, ill try downloading amxx again.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-11-2006 , 16:19  
Reply With Quote #8

FYI...use the webcompiler.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Reply


Thread Tools
Display Modes

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


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