05.05.2015, 13:52
I have problem with coverting int to string.
can you explain me more for your method of my command ?
Код:
new type2[4]; type2[4] = strval(type);
Код:
error 032: array index out of bounds (variable "type2")
Quote:
No, your code was not working how you posted it. You tried to convert an integer (garageid) to integer (using strval).
Thanks for repeating my words. I'm just trying to help him, with whatever method he chooses and prevent him running into another invalid code. Look at this (what you posted): switch(strval(garageid)) garageid is integer. strval converts a string into integer. The use of strval isn't wrong here (in the switch), but garageid is not a string that can be converted by strval. |
can you explain me more for your method of my command ?
