Setting A Variable
OK in PHP to set a variable based off of a calculation I do
Code:
$value_1 = 1;Code:
#define VALUE_1 0 |
Re: Setting A Variable
I'm pretty sure you're overcomplicating things. heres an equivilent (sp?) of your php code
Code:
new value1 = 1 |
Re: Setting A Variable
|
Re: Setting A Variable
yeah I'm sure I may be making it more complicated then it needs to be. I always do that. Thank you for the reply.
However, I guess I misled a little.. There are many more sums then just value1 and value2. Depending on certain conditions the player may need to subtract 32 from another variable, 33 from a completely different variable.. In other words I need to know how to do a calculation (which is different depending on conditions.) for example; Code:
if(stats[0] >= 100 && stats[0] <= 150)then call that stored number in a client_print Code:
client_print(id,print_chat, "%d", sum[variable[id]]);Quote:
All I know is what a plugin needs to do to get something done. As always i will be looking through that and trying stuff when waiting for reply's. |
Re: Setting A Variable
ok I figured it out.. Thanks for the nudges guys...
Code:
|
| All times are GMT -4. The time now is 06:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.