strfind problem
#8

I have problem with coverting int to string.


Код:
    new type2[4];
    type2[4] = strval(type);
Код:
error 032: array index out of bounds (variable "type2")
Quote:
Originally Posted by NaS
Посмотреть сообщение
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 ?
Reply


Messages In This Thread
strfind problem - by TiXz0r - 04.05.2015, 22:47
Re: strfind problem - by Gammix - 05.05.2015, 03:09
Re: strfind problem - by Threshold - 05.05.2015, 03:29
AW: strfind problem - by NaS - 05.05.2015, 04:35
Re: AW: strfind problem - by Gammix - 05.05.2015, 04:57
Re: strfind problem - by TiXz0r - 05.05.2015, 12:31
AW: Re: AW: strfind problem - by NaS - 05.05.2015, 13:26
Re: strfind problem - by TiXz0r - 05.05.2015, 13:52
Re: strfind problem - by MP2 - 05.05.2015, 13:55
Re: strfind problem - by TiXz0r - 05.05.2015, 13:59

Forum Jump:


Users browsing this thread: 4 Guest(s)