SA-MP Forums Archive
[Ajuda] Argument type mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Argument type mismatch (/showthread.php?tid=579566)



Argument type mismatch - JuniorTheDM - 28.06.2015

Include Logs
PHP код:
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(159) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
1 Error
. 
PHP код:
    new nomelog[MAX_PLAYER_NAME];
    
GetPlayerName(playerid, nomelog, sizeof(nomelog));
    new 
Log [ ] = "Servidor/Logs/pegaradm.log";
    
WriteLog (Log, "o Jogador %s Pegou Admistrador", nomelog); 



Re: Ultimo topico de hj - iTakelot - 28.06.2015

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



Re: Ultimo topico de hj - JuniorTheDM - 28.06.2015

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



Re: Ultimo topico de hj - Juniiro3 - 28.06.2015

Код:
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);



Re: Argument type mismatch - PT - 28.06.2015

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