Andymakeer
Member
Hey guys!
I have a ds_map that have pairs of var_name & var_value, that I send to a method that uses the function variable_global_set to add the value to that variable by its name.
Its working fine, the problems is, seems like variable_global_set rounds the var_value value, so if I send like "1.25" it just adds "1" and so on.
My ds_map is really, really big, so to prevent a giant switch statement, I made the method above.
Help? I read the docs but no luck...
I have a ds_map that have pairs of var_name & var_value, that I send to a method that uses the function variable_global_set to add the value to that variable by its name.
Its working fine, the problems is, seems like variable_global_set rounds the var_value value, so if I send like "1.25" it just adds "1" and so on.
My ds_map is really, really big, so to prevent a giant switch statement, I made the method above.
Help? I read the docs but no luck...