Illusion
RMXP game maker
- 155
- Posts
- 20
- Years
- Seen Oct 17, 2011
Does anybody know how to make a string variable into a integer?
I've tried this:
but it doesn't work(I tried adding 1 to $game_variables[1] like this:
and I had an error...
Thx in advance! ;)
I've tried this:
Code:
$game_variables[1] = Time.new.strftime("%I")
$game_variables[1].to_i
Code:
$game_variables[1]+=1
Thx in advance! ;)
![[PokeCommunity.com] Help and Request Thread [PokeCommunity.com] Help and Request Thread](https://img489.imageshack.us/img489/2159/error4sx.png)