[Ajuda] Ifstrfind
#9

pawn Код:
public IsAStars(playerid)
{
   if(IsPlayerConnected(playerid))
   {
      // se tiver Rockstar no nome
      if(strfind(PlayerName(playerid), "Rockstar", true) != -1)
      {
          return true;
      }
      else // se nao tiver Rockstar no nome
      {
         return false;
      }
   }
   return 0;
}
Reply


Messages In This Thread
Ifstrfind - by Ricardo_Rockstar - 31.10.2013, 19:43
Re: Ifstrfind - by Kuddy - 31.10.2013, 19:47
Re: Ifstrfind - by Eudes - 31.10.2013, 19:51
Re: Ifstrfind - by Kuddy - 31.10.2013, 19:55
Re: Ifstrfind - by Eudes - 31.10.2013, 20:15
Re: Ifstrfind - by Ricardo_Rockstar - 31.10.2013, 20:45
Re: Ifstrfind - by Eudes - 31.10.2013, 20:55
Re: Ifstrfind - by Ricardo_Rockstar - 31.10.2013, 20:58
Re: Ifstrfind - by Eudes - 31.10.2013, 21:03

Forum Jump:


Users browsing this thread: 1 Guest(s)