SSGamers - 12 Anos online por você.

#SSGamers - A Comunidade que mais crescer no brasil!

Participe do fórum, é rápido e fácil

SSGamers - 12 Anos online por você.

#SSGamers - A Comunidade que mais crescer no brasil!

SSGamers - 12 Anos online por você.

Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Chegou o novo tema 6.5.5 - SSGamers - Servidores online de qualidade - Aproveite e entre para nossa comunidade, inscreva-se já! - Ouça nossa web radio - Veja nossas novidades - Participe dos nossos setores de jogos online - Parcerias aberta fale já com um administrador.

    strfind - codigo util

    Weslley_Script
    Weslley_Script
    SS - Fundador
    SS - Fundador


    Steam Steam : WeslleySSGames
    Zello : WeslleySSGames
    Mensagens : 11378
    Moedas : 1031978
    Data de inscrição : 06/10/2011
    Idade : 28
    Localização : Brasil

    strfind - codigo util Empty strfind - codigo util

    Mensagem por Weslley_Script Sáb 25 Mar 2023 - 10:55

    Description:
    Search for a sub string in a string.

    Parameters:
    (const string[],const sub[],bool:ignorecase=false,pos=0)
    const string[] The string you want to search in (haystack).
    const sub[] The string you want to search for (needle).
    ignorecase (optional) When set to true, the case doesn't matter - HeLLo is the same as Hello. When false, they're not the same.
    Position (optional) The offset to start searching from.

    Return Values:
    The number of characters before the sub string (the sub string's start position) or -1 if it's not found.

    Example Usage:

    Código:
    if(strfind("Are you in here?", "you", true) != -1) //returns 4, because the start of 'you' (y) is at index 4 in the string
    {
        SendClientMessageToAll(0xFFFFFFFF, "I found you!");
    }

    Creditos: WIKI SA-MP



    strfind - codigo util D07Xwqb
    strfind - codigo util Yjab9HN

      Data/hora atual: Qui 9 maio 2024 - 11:13