SA-MP Forums Archive
[Pedido] Sistema De Tutorial - 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: [Pedido] Sistema De Tutorial (/showthread.php?tid=523613)



Sistema De Tutorial - _Play_ - 03.07.2014

Tipo Depois Que A Pessoa Se Registrasse E Logarsse Iria Apareзer Um Tutorial Com Regras E Explicando O Server Ai Depois Ele Clicava Em Spawn E Poderia Jogar!


Re: Sistema De Tutorial - Jumper. - 03.07.2014

Vocк vai ter que colocar isso: https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Aqui: https://sampwiki.blast.hk/wiki/OnPlayerConnect
Ou dependendo aqui: https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Ou entгo aqui: https://sampwiki.blast.hk/wiki/OnPlayerSpawn
Depende do jeito que vai fazer.


Re: Sistema De Tutorial - _Play_ - 03.07.2014

alguem ai quer da mais uma ideia ou base


Re: Sistema De Tutorial - BWCALLEf - 03.07.2014

Bom coloca uma dialog logo apos o primeiro login do player depois de registrado logo apos ele spawnar
Para Aparecer a mensagem que vocк quer da para usar DIALOG_STYLE_MSGBOX ae Voce Escolhe Quando
aparecera a MSG

ShowPlayerDialog

DialogStyles

Um Exemplo
No Topo
pawn Код:
#define AVISO 1 // Define a Dialog de MSG
pawn Код:
new String[150];
format(String, sizeof String, "MSG..................");
ShowPlayerDialog(playerid, AVISO, DIALOG_STYLE_MSGBOX, "Nome Cabecalho", String, "Continuar", "Sair");



Re: Sistema De Tutorial - MultiKill - 03.07.2014

Quote:
Originally Posted by BWCALLEf
Посмотреть сообщение
Bom coloca uma dialog logo apos o primeiro login do player depois de registrado logo apos ele spawnar
Para Aparecer a mensagem que vocк quer da para usar DIALOG_STYLE_MSGBOX ae Voce Escolhe Quando
aparecera a MSG

ShowPlayerDialog

DialogStyles

Um Exemplo
No Topo
pawn Код:
#define AVISO 1 // Define a Dialog de MSG
pawn Код:
new String[150];
format(String, sizeof String, "MSG..................");
ShowPlayerDialog(playerid, AVISO, DIALOG_STYLE_MSGBOX, "Nome Cabecalho", String, "Continuar", "Sair");
Nгo й preciso formatar a mensagem, se nгo for incluir nada de especial dentro da mensagem.

Й sу deixar assim:
pawn Код:
ShowPlayerDialog(playerid, AVISO, DIALOG_STYLE_MSGBOX, "Nome Cabecalho", "MSG..................", "Continuar", "Sair");



Re: Sistema De Tutorial - PT - 03.07.2014

Porque Dialog? tbm pode usar Textdraw

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


Re: Sistema De Tutorial - _Play_ - 03.07.2014

oqueque tem de errado aq

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
/* linha 143 */   ShowPlayerDialog(playerid, DIALOG_BEM, DIALOG_STYLE_LIST, "BemVindos", "Logar\nRegistrar\nSair", "Select");

    return 1;
}
erros

pawn Код:
C:\Users\Ivison\Documents\gamemodes\PROJETOo.pwn(143) : error 029: invalid expression, assumed zero
C:\Users\Ivison\Documents\gamemodes\PROJETOo.pwn(143) : warning 215: expression has no effect
C:\Users\Ivison\Documents\gamemodes\PROJETOo.pwn(143) : warning 215: expression has no effect
C:\Users\Ivison\Documents\gamemodes\PROJETOo.pwn(143) : warning 215: expression has no effect
C:\Users\Ivison\Documents\gamemodes\PROJETOo.pwn(143) : warning 215: expression has no effect
C:\Users\Ivison\Documents\gamemodes\PROJETOo.pwn(143) : error 001: expected token: ";", but found ")"
C:\Users\Ivison\Documents\gamemodes\PROJETOo.pwn(143) : error 029: invalid expression, assumed zero
C:\Users\Ivison\Documents\gamemodes\PROJETOo.pwn(143) : fatal error 107: too many error messages on one line
eu tava mechendo nessa parte de tutoriais e login e deu isso


Re: Sistema De Tutorial - BWCALLEf - 03.07.2014

MultiKill tipo eu quero escrever um texto gigante como eu faria? existe outro modo?


Re: Sistema De Tutorial - MultiKill - 03.07.2014

Estб faltando um parвmetro.
pawn Код:
ShowPlayerDialog(playerid, DIALOG_BEM, DIALOG_STYLE_LIST, "BemVindos", "Logar\nRegistrar\nSair", "Select");
Para:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_BEM, DIALOG_STYLE_LIST, "BemVindos", "Logar\nRegistrar\nSair", "Select","");
Quando Vocк nгo for usar um botгo deixe:
pawn Код:
""



Re: Sistema De Tutorial - MultiKill - 03.07.2014

Quote:
Originally Posted by BWCALLEf
Посмотреть сообщение
MultiKill tipo eu quero escrever um texto gigante como eu faria? existe outro modo?
Se eu nгo me engano, nгo precisa de format mesmo que o texto for gigante. Sу usar \n para quebrar a linha. Ou usar strcat.

Nгo sei se eu estou certo vou dar uma estudada no wiki.


Re: Sistema De Tutorial - _Play_ - 03.07.2014

continua os mesmos erros


Re: Sistema De Tutorial - MultiKill - 03.07.2014

O erro nгo estб nesta linha. A linha estб certa.
O erro sу aconteceria nesta linha se eu a deixa-se assim:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_BEM, DIALOG_STYLE_LIST, "BemVindos", "Logar\nRegistrar\nSair", "Select",""));



Re: Sistema De Tutorial - darkxdll - 03.07.2014

Este erro pode ocorrer tambйm quando nгo define a dialog .
PHP код:
#define DIALOG_BEM     943//mude para um valor ke nao de conflito 



Re: Sistema De Tutorial - _Play_ - 03.07.2014

eu esqueзi de definir o numero do dialog vlw ao a todos

EDIT
como um ninja o cara acima comentou