Raised This Month: $ Target: $400
 0% 

compiling error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-07-2006 , 11:08  
Reply With Quote #1

Code:
get_user_armor(index, &CsArmorType:armortype)
It formats armortype var to whatever armor you're using and returns armor ammount.
Instead of
Code:
cs_set_user_armor(id, cs_get_user_armor(id, CS_ARMOR_VESTHELM) - 500, CS_ARMOR_VESTHELM)
You can do like this.
Code:
                new CsArmorType:armortype                 new armorvalue = cs_get_user_armor(id, armortype)                 cs_set_user_armor(id, armorvalue - 500, CS_ARMOR_VESTHELM)
Or use the armortype var.
Code:
                new CsArmorType:armortype                 new armorvalue = cs_get_user_armor(id, armortype)                 cs_set_user_armor(id, armorvalue - 500, armortype)

This is fixed:

Last edited by [ --<-@ ] Black Rose; 10-14-2006 at 19:25.
[ --<-@ ] Black Rose is offline
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 16:31.


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