[Ajuda] O que hб de errado nisso? :@ - 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] O que hб de errado nisso? :@ (
/showthread.php?tid=459904)
O que hб de errado nisso? :@ -
AndersonAq - 25.08.2013
PHP Code:
CMD:an(playerid, params[])
{
new t[426], TempoResTexto, nome[24], TextoChat, String[128];
if(sscanf(params, "s[426]", t)) return SendClientMessage(playerid, 0xFF0000FF, "/An [ Mensagem ]");
format(String, sizeof(String), "~g~%s~w~: %s",nome(playerid), t);
TextDrawSetString(TextoChat,String);
TextDrawShowForAll(TextoChat);
TempoResTexto = SetTimer("FecharTexto", 8000, false);
TempoResTexto--;
return 1;
}
error 001: expected token: ";", but found ")"
linha:
PHP Code:
format(String, sizeof(String), "~g~%s~w~: %s",nome(playerid), t);
Re: O que hб de errado nisso? :@ -
Standby - 25.08.2013
pawn Code:
format(String, sizeof(String), "~g~%s~w~: %s",nome, t);
Re: O que hб de errado nisso? :@ -
Sti - 26.08.2013
pawn Code:
CMD:an(playerid, params[])
{
new t[426], TempoResTexto, nome[24], TextoChat, String[128];
if(sscanf(params, "s[426]", t)) return SendClientMessage(playerid, 0xFF0000FF, "/An [ Mensagem ]");
format(String, sizeof(String), "~g~%s~w~: %s",nome, t); //Linha Editada < Erro era o (playerid)
TextDrawSetString(TextoChat,String);
TextDrawShowForAll(TextoChat);
TempoResTexto = SetTimer("FecharTexto", 8000, false);
TempoResTexto--;
return 1;
}