SA-MP Forums Archive
[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)

Pages: 1 2


Re: [Ajuda] Chat - EditPawn - 17.06.2012

Quote:
Originally Posted by Bruno Pereira
View Post
Tenho praticamente certeza que esta errado, uso assim:
PHP Code:
new corda[SLOTS][128];
CMD:av(playeridparams[])
{
    if(
sscanf(params"s[128]"corda[playerid]))
        return 
SCM(playeridCOR_CINZA1"Use: /aviso [mensagem]");
    
SCMTA(COR_BRANCO"|_______________| AVISO DA ADMINISTRAЗГO |_______________| ");
    
format(String100"Admin %s: %s"pNome(playerid), corda[playerid]);
    
SCMTA(COR_AZULZAOString);
    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
View Post
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(playeridparams[])
{
    new 
        
str[128],
        
pName[MAX_PLAYER_NAME],
        
sStr[128]
    ;
    
    if(
sscanf(params"s"str))
        return 
SendClientMessage(playerid, -1"Use: /aviso [mensagem]");
    
GetPlayerName(playeridpName24);
    
SendClientMessageToAll(-1"|_______________| AVISO DA ADMINISTRAЗГO |_______________| ");
    
format(sStr100"Admin %s: %s"pNamestr);
    
SendClientMessageToAll(-1sStr);
    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
View Post
Que isso pow, errando й que se aprende
pode cre
desatenзгo minha '-'