I have this error : Unhandled Exception: type 'int' is not a subtype of type 'String' on this line of code :
double d=double.parse(map2["gain_gem"]);
map2["gain_gem"] is returned by php script api and return value 1
And after i try to do this :
globals.points = globals.points+d;
i have tried too :
globals.points = globals.points+double.parse(map2["gain_gem"]);
same problem
globals.points is defined as double in my script
double points=0;