[AJUDA]Define
#3

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
Exemplo:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new wiiStr[256];

    //comandos
    if(!strcmp(cmdtext,"/exemplo",true))
    {
        format(wiiStr,24,"%s",pNome); // vai pegar o nome do player :D
        return 1;
    }
    return 0;
}

stock pNome(playerid) //Stock para getar o nome...
{
    new
        wiiN[MAX_PLAYER_NAME]
    ;

    GetPlayerName(playerid, wiiN, sizeof( wiiN ));
    return wiiN;
}
Cara.. tipo eu jб tenho meus comandos sу preciso define no commandtext pra nгo dб erro, entende ?
Reply


Messages In This Thread
[AJUDA]Define - by .CrazZy._.[De] - 14.10.2011, 15:24
Re: [AJUDA]Define - by WLSF - 14.10.2011, 15:27
Re: [AJUDA]Define - by .CrazZy._.[De] - 14.10.2011, 15:51
Re: [AJUDA]Define - by TiagoPS - 14.10.2011, 15:54
Re: [AJUDA]Define - by Lуs - 14.10.2011, 15:54
Re: [AJUDA]Define - by WLSF - 14.10.2011, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)