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