How to equal value to constants from the list?
#4

That is completely invalid and will probably just result in "true" all the time, even if the vehicle model isn't on that list. Use this:

PHP код:
stock in_array(needle, const haystack[], size sizeof haystack, &index 0)
{
    for(new 
isizei++)
    {
        if(
haystack[i] == needle)
        {
            
index i;
            return 
true;
        }
    }
        
    return 
false;

Reply


Messages In This Thread
How to equal value to constants from the list? - by Salvator - 01.03.2016, 00:28
Re: How to equal value to constants from the list? - by Jefff - 01.03.2016, 01:38
Re: How to equal value to constants from the list? - by Salvator - 01.03.2016, 11:24
Re: How to equal value to constants from the list? - by Vince - 01.03.2016, 11:46
Re: How to equal value to constants from the list? - by Salvator - 01.03.2016, 12:55
Re: How to equal value to constants from the list? - by AmigaBlizzard - 01.03.2016, 17:28
Re: How to equal value to constants from the list? - by Salvator - 01.03.2016, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)