insaneownage
New Member
- Reaction score
- 6
JASS:
function raiseplayervalue takes player ptoraise, integer AmountRaised returns nothing
call StartTimerBJ( udg_playervaluetimer[GetConvertedPlayerId(ptoraise)]), false, (( TimerGetRemaining(udg_playervaluetimer[GetConvertedPlayerId(ptoraise)]) + I2R(AmountRaised))
set udg_playervalueamount[GetConvertedPlayerId(ptoraise)] = ( udg_playervalueamount[GetConvertedPlayerId(ptoraise)] + (AmountRaised) )
endfunction
I'm a bit new to JASS. What I'm trying to do is make a function that does the following:
-Takes in a player to be raised, and the amount to raise him by
-Start his timer over by (current timer + raise amount)
-Add the amount raised to a global variable storing his total amount ever had.