10.04.2013, 09:00
My issue was another, but thanks.
But now I would like to use the strfind function, that in C++ and GDK don't exists. So... how I can modify this code to work properly?
But now I would like to use the strfind function, that in C++ and GDK don't exists. So... how I can modify this code to work properly?
pawn Code:
int GetVehicleModelIDFromName(char vname[])
{
for(int i = 0; i < 211; i++)
{
if(strfind(aVehicleNames[i], vname) != -1) // I don't know what I could replace strfind. When I'm tried with string::vname.find - I've an bug - when I wrote "/car infernus", I received Landstalker...
return i + 400;
}
return -1;
}