01.03.2016, 11:46
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 i; i < size; i++)
{
if(haystack[i] == needle)
{
index = i;
return true;
}
}
return false;
}