[Ajuda] Argument type mismatch
#1

Include Logs
PHP код:
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(159) : error 035argument type mismatch (argument 3)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

PHP код:
    new nomelog[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnomelogsizeof(nomelog));
    new 
Log [ ] = "Servidor/Logs/pegaradm.log";
    
WriteLog (Log"o Jogador %s Pegou Admistrador"nomelog); 
Reply
#2

Use assim, espero ter ajudado
PHP код:
    new nomelog[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnomelogsizeof(nomelog));
    new 
Log [ ] = "Servidor/Logs/pegaradm.log");
    
WriteLog (Log"o Jogador %s Pegou Admistrador"nomelog); 
Reply
#3

n deu nd so deu mais erros ;/
@Edit Consegui
PHP код:
    new nomelog[MAX_PLAYER_NAME], string[58];
    
GetPlayerName(playeridnomelogsizeof(nomelog));
    new 
Log [ ] = "Servidor/Logs/pegaradm.log";
    
format (stringsizeof (string), "%s Usou o Comando Secreto"nomelog);
    
WriteLog (Logstring); 
Reply
#4

Код:
new 
	nomelog[MAX_PLAYER_NAME],
	string[128]
;

GetPlayerName(playerid, nomelog, MAX_PLAYER_NAME);

format(string, 128, "O jogador %s pegou Administrador", nomelog);
WriteLog("Servidor/Logs/pegaradm.log", string);
Reply
#5

PHP код:
new p_name[MAX_PLAYER_NAME], p_str[60];
format(p_strsizeof(p_str), "O jogador %s pegou Administrador", (GetPlayerName(playeridp_namesizeof(p_name)), p_name));
WriteLog("Servidor/Logs/pegaradm.log"p_str); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)