SA-MP Forums Archive
[Ajuda] error 035: argument type mismatch (argument 2) - 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] error 035: argument type mismatch (argument 2) (/showthread.php?tid=540765)



error 035: argument type mismatch (argument 2) - Alwe - 07.10.2014

Код:
(14089) : error 035: argument type mismatch (argument 2)
(18292) : error 035: argument type mismatch (argument 2)
(18324) : error 035: argument type mismatch (argument 2)
Linhas :
14089
pawn Код:
SendClientMessageToAll( playerid, 0x33CCFFAA, "| LW-Admin | O(A) administrador(a) %s prendeu o(a) jogador(a) %s por %d Minutos ( Motivo: %s )", PlayerName( playerid ), PlayerName( id ), result, iTempo );
18292
pawn Код:
SendClientMessageToAll( i, 0xBCE635AA, "| BAN | O(A) jogador(a) %s foi banidoOFF pelo(a) Administrador(a) %s", tmp, PlayerName( playerid ));
18324
pawn Код:
SendClientMessageToAll( playerid, 0xBCE635AA, "| DESBAN | O(A) jogador(a) %s foi desbanido(a) pelo(a) administrador(a) %s !", tmp, PlayerName( playerid ));
Me ajudem queridos ?


Re: error 035: argument type mismatch (argument 2) - PT - 07.10.2014

tem de usar format cara

https://sampwiki.blast.hk/wiki/Format


Re: error 035: argument type mismatch (argument 2) - Alwe - 07.10.2014

Quote:
Originally Posted by PT
Посмотреть сообщение
Код:
format(string, sizeof(string), "| LW-Admin | O(A) administrador(a) %s prendeu o(a) jogador(a) %s por %d Minutos ( Motivo: %s )", PlayerName( playerid ), PlayerName( id ), result, iTempo );
			SendClientMessageToAll(playerid, 0x33CCFFAA, string);
assim ?


Re: error 035: argument type mismatch (argument 2) - MultiKill - 07.10.2014

pawn Код:
SendClientMessageToAll(playerid, 0x33CCFFAA, string);
Estб funзгo sу usa dois parвmetros:
pawn Код:
SendClientMessageToAll(cor, mensagem[]);