Shouldn't this set the variable to whatever value I want them?
Shouldn't I just be able to run this one and BAM in a few minutes the stats page will update?
Simba Code:
Program ChocolateCutter;
//{$DEFINE SMART}
{$i SRL\SRL.simba}
Const
SRLStats_Username = 'asdf'; // Your SRL Stats Username
SRLStats_Password = 'asdf'; // Your SRL Stats Password
BuyPrice= 226; //Price you bought bars at
SellPrice= 327; //Price you plan to sell dust at
var
Profit: Integer;
Begin
SetUpSRL;
if (SRLStats_Username = '') then
SetupSRLStats(637, 'Anonymous', 'anon1337')
else
SetupSRLStats(637, SRLStats_Username, SRLStats_Password);
Profit:= (SellPrice-BuyPrice);
stats_SetVariable('Loads Done', 91);
stats_SetVariable('Profit Made', 2546 * Profit);
stats_SetVariable('Chocolate Dust (Created)', 2546);
stats_Commit;
End.