[Ajuda] Chat - 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] Chat (
/showthread.php?tid=351666)
Re: [Ajuda] Chat -
EditPawn - 17.06.2012
Quote:
Originally Posted by Bruno Pereira
Tenho praticamente certeza que esta errado, uso assim:
PHP Code:
new corda[SLOTS][128];
CMD:av(playerid, params[])
{
if(sscanf(params, "s[128]", corda[playerid]))
return SCM(playerid, COR_CINZA1, "Use: /aviso [mensagem]");
SCMTA(COR_BRANCO, "|_______________| AVISO DA ADMINISTRAЗГO |_______________| ");
format(String, 100, "Admin %s: %s", pNome(playerid), corda[playerid]);
SCMTA(COR_AZULZAO, String);
return 1;
}
|
Bom, irei fazer os testes novamente nesse momento...
Se eu estiver errado, me desculpem.
Re: [Ajuda] Chat -
Bruno Pereira - 17.06.2012
Nгo esquece de olhar seu console do samp-server.exe para ver se da algum warning
Re: [Ajuda] Chat -
EditPawn - 17.06.2012
Quote:
Originally Posted by Bruno Pereira
Nгo esquece de olhar seu console do samp-server.exe para ver se da algum warning 
|
Bom, criei FS sempre usando "s", e nгo me deparei com nenhum warning no console. :S
no mнnimo estranho.. :X
Re: [Ajuda] Chat -
Bruno Pereira - 17.06.2012
Vou fazer testes aqui.
Realmente dб warning xD.
Faзa o teste com esse comando:
PHP Code:
CMD:av(playerid, params[])
{
new
str[128],
pName[MAX_PLAYER_NAME],
sStr[128]
;
if(sscanf(params, "s", str))
return SendClientMessage(playerid, -1, "Use: /aviso [mensagem]");
GetPlayerName(playerid, pName, 24);
SendClientMessageToAll(-1, "|_______________| AVISO DA ADMINISTRAЗГO |_______________| ");
format(sStr, 100, "Admin %s: %s", pName, str);
SendClientMessageToAll(-1, sStr);
return 1;
}
Olhe o meu console

:
http://i.imgur.com/nLmd8.jpg
(meu time no cartola ta ownando haha!)
Re: [Ajuda] Chat -
EditPawn - 17.06.2012
Bom, entendi o que estava ocorrendo, estou usando sscanf apenas e nao a sscanf2, desculpem o meu erro.
-qq
Re: [Ajuda] Chat -
Bruno Pereira - 17.06.2012
Que isso pow, errando й que se aprende
Re: [Ajuda] Chat -
EditPawn - 17.06.2012
Quote:
Originally Posted by Bruno Pereira
Que isso pow, errando й que se aprende 
|
pode cre
desatenзгo minha '-'