[Ajuda] Comando /n
#1

Ola oque esta de errado neste comando que nao envia a mensagem que o player digita exemplo:
Ex: /n Como faзo tal coisa

Em vez de aparecer Player tal DIZ: como faзo tal coisa aparece : Uso correto: /novato [Mensagem


PHP код:
CMD:n(playeridparams[]) 

    new 
string[128], Texto[200]; 
    if(
sscanf(params"s[128]"string)) return SendClientMessage(playerid, -1"Uso correto: /novato [Mensagem]"); 
    new 
nome[MAX_PLAYER_NAME]; 
    
GetPlayerName(playeridnomesizeof(nome)); 
    
format(Texto128"%s Diz: %s"nomestring); 
    
SendClientMessage(iGetPlayerColor(playerid), Texto); 
         
    return 
true;  

Reply
#2

PHP код:
CMD:novato(playeridparams[])   
{   
    new 
Texto[128];  
    if(
GetPlayerScore(playerid) > 5) return SendClientMessage(playerid, -1"Vocк nгo й um NOVATO!"); 
    if(
isnull(params)) return SendClientMessage(playerid, -1"Uso correto: /novato [Mensagem]");   
    new 
nome[MAX_PLAYER_NAME];   
    
GetPlayerName(playeridnomesizeof(nome));
    for(new 
iMAX_PLAYERSi++)  
    {  
        if(
IsPlayerConnected(i) && GetPlayerScore(i) < 5)  
        {  
            
format(Texto128"Chat Noob %s nivel[%d]: %s"nomeGetPlayerScore(playerid), params);   
            
SendClientMessage(i,-1Texto);   
        }  
    }  
    return 
true;  

Reply
#3

PHP код:
(200) : error 017undefined symbol "score" 
PHP код:
linha 200         format(Texto128"Chat Noob %s nivel[%d]: %s"nomescoreparams);
        
linha 201       SendClientMessage(i,-1Texto);
        
linha 202      
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)