I'm using String.Format to try and turn the value of an integer into a readable string but I'm getting an error every time I try to use it.
my code looks like this
Code: ags
and i keep getting the error:
Error (Line 5): cannot assign value to global pointer.
If anyone can help me figure out what's happening here, that would be great.
my code looks like this
//main global script file
int gold;
gold = 300;
export gold;
String goldAsText = String.Format("%d", gold);
export goldAsText;
and i keep getting the error:
Error (Line 5): cannot assign value to global pointer.
If anyone can help me figure out what's happening here, that would be great.