View Single Post
  #6  
Old 01-20-2013, 10:03 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

it does that because you're trying to set an unsigned integer type to a negative value. try this instead:

Code:
$client->SetAAPoints($client->GetAAPoints()-200);
but you likely want to check the current aa point value first to make sure they have enough before you allow them to purchase whatever it is and then set the new value.
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote