[Ajuda] Strlen
#5

pawn Код:
CMD:setname(playerid,params[])
{
    static id,nome[128];
    if(Player[playerid][Level] >= 2)
    {
        if(sscanf(params,"us",id,nome)) return SendClientMessage(playerid,-1,"Uso correto: /setname [id] [novo nome do player]");
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Player nгo conectado!");
        if(strlen(nome) > 24) return SendClientMessage(playerid,-1,"Nome muito grande!!");
        SetPlayerName(id,nome);
    }else return SendClientMessage(playerid,-1,"|ERRO| - Vocк nгo pode usar esse comando!");
    return true;
}
Nem sei se pode ser isso mas testa
Reply


Messages In This Thread
Strlen - by Crueliz0n - 17.09.2012, 01:30
Re: Strlen - by Crueliz0n - 17.09.2012, 13:46
Re: Strlen - by ViniBorn - 17.09.2012, 14:48
Re: Strlen - by Crueliz0n - 17.09.2012, 15:02
Re: Strlen - by [iTz]Pawn._. - 17.09.2012, 15:04
Re: Strlen - by ViniBorn - 17.09.2012, 15:19
Re: Strlen - by paulor - 17.09.2012, 15:43
Re: Strlen - by Crueliz0n - 17.09.2012, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)