[Tutorial] Como utilizar ZCMD + sscanf - Com exemplo.
#10

Pra que usar isto:
PHP код:
new id;
new 
skin;
new 
str[128];
new 
aName [MAX_PLAYER_NAME]; 
para todos os comandos sendo que й sу por global ?

E pra obter o nome, й sу usar assim:
PHP код:
stock PlayerName(playerid)
{
     static 
Name[MAX_PLAYER_NAME];
     
GetPlayerName(playeridNameMAX_PLAYER_NAME);
     return 
Name;

Ou dessa maneira que й meu caso:
PHP код:
new PlayerName[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
    static
        
Name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridPlayerName[playerid], 24);
    
//PlayerName[playerid]  para obter o nome nas funзхes
    
return 1;

Em vez de ficar criando variбvel em tudo para obter nome.

Nгo gostei da organizaзгo e da indentaзгo do seu comando '-'
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)