- Joined
- Jul 14, 2011
- Messages
- 3,213
Wanna give examples? Because I can't how that is simpler than the string save
call SaveInteger( abilityHash, GetHandleId( unit), lvl, 13) //the 13 will be for abilities 1 and 3
//the lvl is the lvl at which u want this to happen.
set i1 = LoadInteger( abilityHash, GetHandleId( u), GetUnitLvl( u)) //the 13 will be loaded and will point to abilities 1 and 3
set i2 = (i1 - (i1 / 10) * 10) + 1000 //this will set integer i2 = 1003
set i3 = ( ( i1 - i2) / 10) + 1000 //this will set integer i3 = 1001
set i1 = LoadInteger( abilityHash, GetHandleId( u), i2) // this will load the ability to lvl
set i1 = LoadInteger( abilityHash, GetHandleId( u), i3) // this will load the other ability to lvl.
Nope... I'm not turning any I2S and then S2I. I'm just saving a string as a string which is turned later to integers.saving the string converts the integer from an integer to a string then to use it u change it from a string to an integer.