Raised This Month: $ Target: $400
 0% 

Scripting Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MadSon
New Member
Join Date: Oct 2013
Old 01-11-2015 , 03:52   Scripting Help
Reply With Quote #1

So I have this function:
Code:
SetProperty(ent, property, const property_value[]) {
//...
}
So I have another function which creates the entity and sets the property for it using SetProperty, now I want to increment the property value by 1 each time the entity function is called, so how could I do that?

Code:
SetProperty(ent, 1, property); // property ++
MadSon is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-11-2015 , 04:13   Re: Scripting Help
Reply With Quote #2

Read the property, add 1, set the property. I think this is straightforward.

If you want any more than that you will need to be much more specific about your problem.
__________________
fysiks 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 15:21.


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