STRFIND issues
#4

Quote:
Originally Posted by Christian_Larrabure
Посмотреть сообщение
If i understand correctly you are searching

VehicleNames[i] in Model
So basically fx. let's say model id 201 is Sultan
You are searching the word "Sultan" in the number 201. that sends ovbiously a error. i will give you a example of strfind:

pawn Код:
new playername[128];
GetPlayerName(playerid, playername, sizeof(playername));
if(strfind("_", playername, true) != -1)
{
    return 0;
}
Fx. if the name of the user is Matthew_Larrabure
it will search "_" in "Mathew_Larrabure" and return the POSITION of the
_ thing.
If you need live help you can add me on msn.

Best Regard,

Christian
But what if i want to seach ModelID(playerid) in VehicleName , it returns the model but i get an error still.
how would that look

and my vehicle names, each one is like this "ID - NAME" so its all in one thing, so it would return ex: "560 - Sultan"
Reply


Messages In This Thread
STRFIND issues - by Hal - 13.11.2010, 01:36
Re: STRFIND issues - by Hal - 13.11.2010, 01:53
Re: STRFIND issues - by Hal - 13.11.2010, 01:59
Re: STRFIND issues - by Hal - 13.11.2010, 02:15
Re: STRFIND issues - by Buzzbomb - 13.11.2010, 02:20

Forum Jump:


Users browsing this thread: 2 Guest(s)