Raised This Month: $ Target: $400
 0% 

Setting A Variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
raa
Senior Member
Join Date: Oct 2005
Old 11-21-2006 , 18:58   Setting A Variable
Reply With Quote #1

OK in PHP to set a variable based off of a calculation I do

Code:
$value_1 = 1;
$value_2 = 2;

$sum = (($value_2 - $value_1));

echo $sum;
In amxx I've gotten this far

Code:
#define VALUE_1 0
#define VALUE_2 1
#define VALUE_3 2

#define MAXVALUE 3

new SUMVALUES[33]

new const SUMS[MAXVALUE][] = 
{ 
	"0",
	"1",
        "2"
}

??????? <----  set a variable based on the sum of VALUE_3 minus VALUE_2 for use of calling later on. 

client_print(id,print_chat, "Three minus two is %i", SUMS[SUMVALUES[id]]);
secondly, am I even on the right track with the amxx script that I do have down? lol
raa is offline
 



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 06:58.


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