[Ajuda] Nome em comando
#4

Quote:
Originally Posted by bruxo00
Посмотреть сообщение
Sou novato tambйm, se estiver a dizer alguma barbaridade desculpem

Serб que й +/- isto que queres?

PHP код:
#include <zcmd>
CMD:portaocasa23(playeridparams[])
{
    new 
checknome "Nome_Do_Player";
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    if(
name == checknome)
    {
        
// executar o comando que deseja
    
}
    else
    {
        
// Se nгo for o player o que aparece
    
}
    return 
1;

Nгo se usa == pra comparar strings
O uso de checknome й desnecessбrio
Reply


Messages In This Thread
Nome em comando - by WotusPower - 10.04.2013, 19:10
Re: Nome em comando - by ViniBorn - 10.04.2013, 19:27
Re: Nome em comando - by bruxo00 - 10.04.2013, 19:29
Re: Nome em comando - by ViniBorn - 10.04.2013, 19:42
Re: Nome em comando - by Dolby - 10.04.2013, 19:42
Re: Nome em comando - by WotusPower - 10.04.2013, 20:41
Re: Nome em comando - by Smoking_Script - 12.04.2013, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)