[Ajuda] Ajuda GETNAMEPLAYER
#7

pawn Код:
CMD:familiapawn(playerid,params[])
{
    new Nome[21];
    new Fala[21];
    new NomePlayer[21][2];

    GetPlayerName(playerid,Nome,sizeof(Nome));
    format(Fala,sizeof(Fala),"%s_Pawn",split(Fala,NomePlayer,'_'));
    SetPlayerName(playerid,Fala);
}

// Fim do GM (By DracoBlue)

stock split(const strsrc[],strdest[][],delimiter)
{
    new i,li,aNum,len;
   
    while(i <= strlen(strsrc))
    {
        if(strsrc[i] == delimiter || i == strlen(strsrc))
        {
            len = strmid(strdest[aNum], strsrc, li, i, 128);
            strdest[aNum][len] = 0;
            li = i+1;
            aNum++;
        }
        i++;
    }
    return 1;
}
Reply


Messages In This Thread
Ajuda GETNAMEPLAYER - by Adejair - 28.10.2013, 15:10
Re: Ajuda GETNAMEPLAYER - by BielCOP - 28.10.2013, 15:13
Re: Ajuda GETNAMEPLAYER - by Adejair - 28.10.2013, 15:14
Re: Ajuda GETNAMEPLAYER - by Coe1 - 28.10.2013, 15:15
Re: Ajuda GETNAMEPLAYER - by Adejair - 28.10.2013, 15:19
Re: Ajuda GETNAMEPLAYER - by TheMing - 28.10.2013, 15:28
Re: Ajuda GETNAMEPLAYER - by BielCOP - 28.10.2013, 17:11
Respuesta: Ajuda GETNAMEPLAYER - by Adejair - 28.10.2013, 17:34
Re: Ajuda GETNAMEPLAYER - by BielCOP - 28.10.2013, 17:35
Respuesta: Ajuda GETNAMEPLAYER - by Adejair - 28.10.2013, 17:46

Forum Jump:


Users browsing this thread: 2 Guest(s)