17.04.2013, 20:53
Oh right there is strfind.
Thanks.
I've searched for strfind on the SA-MP Wiki: The function returns -1 if the string was not found.
So the code should be:
Thanks.

I've searched for strfind on the SA-MP Wiki: The function returns -1 if the string was not found.
So the code should be:
Код:
for(new i = 0; i < sizeof(array); i++)
{
if(strfind(array[i], "box") != -1)
{
// it was found; the position in the array is: i
}
}

