05.05.2015, 03:09
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:
Strval: https://sampwiki.blast.hk/wiki/Strval
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
}