strfind problem
#2

Why do you use strfind?

You must use strcmp (for exact locating of command), but maybe your code work that way!

Here is the wiki link: https://sampwiki.blast.hk/wiki/Strfind (try searching before posting)
Actually if the param garageid is just integer type, you can have a better way of performing those checks:

pawn Код:
switch(strval(garageid))
{
    case 1://player have typed 1
    {
        //your code
    }
    case 2://player have typed 2
    {
        //your code
    }
    default://mkae use of this when the player have typed an invalid number
}
Strval: https://sampwiki.blast.hk/wiki/Strval
Reply


Messages In This Thread
strfind problem - by TiXz0r - 04.05.2015, 22:47
Re: strfind problem - by Gammix - 05.05.2015, 03:09
Re: strfind problem - by Threshold - 05.05.2015, 03:29
AW: strfind problem - by NaS - 05.05.2015, 04:35
Re: AW: strfind problem - by Gammix - 05.05.2015, 04:57
Re: strfind problem - by TiXz0r - 05.05.2015, 12:31
AW: Re: AW: strfind problem - by NaS - 05.05.2015, 13:26
Re: strfind problem - by TiXz0r - 05.05.2015, 13:52
Re: strfind problem - by MP2 - 05.05.2015, 13:55
Re: strfind problem - by TiXz0r - 05.05.2015, 13:59

Forum Jump:


Users browsing this thread: 1 Guest(s)