[Ajuda] Ifstrfind
#5

Quote:
Originally Posted by Kuddy
Посмотреть сообщение
Basta dar uma olhada na wiki, vou atй traduzir:
pawn Код:
if(strfind("Vocк estб aqui?", "Vocк", true) != -1) // retorna 0 (posiзгo do Vocк) (!= -1 por que -1 й igual a "nгo encontrado"')
{
    SendClientMessageToAll(0xFFFFFFFF, "Encontrei Vocк!");
}
exato -1 igual nao encontrado.

o codigo dele ta assim:
pawn Код:
if(strfind(PlayerName(playerid), "Rockstar", true) == -1)
eu propus que colocasse:
pawn Код:
if(strfind(PlayerName(playerid), "Rockstar", true) != -1)
fazendo a mudanзa ira entrar no if pq rockstar foi encontrado na String se ele coloca == -1 nao entra no if pq -1 significa nao encontrado
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)