SA-MP Forums Archive
[Ajuda] 2 Erros Chatos - 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] 2 Erros Chatos (/showthread.php?tid=370730)



2 Erros Chatos - Owtsiixx_Twd - 21.08.2012

pawn Code:
CMD:ajuda(playerid, params[]);
{
    ShowPlayerDialog(playerid, ->Ajuda<-, DIALOG_STYLE_MSGBOX," Ajuda ","/air = Te leva a airbattle\n\n/spawn = Volta para o Local Spawn\n\n/Derby = Te Leva ao Derby (em Construзao)\n\n/Sniper = Apenas Sniper\n\n/Lojadearmas = Comprar Armas","Ok","Sair");
    return true;
}
erros
pawn Code:
C:\Users\Juninho\Desktop\GMS\meugm.pwn(210) : error 055: start of function body without function header
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Re: 2 Erros Chatos - Jason` - 21.08.2012

Errado:
pawn Code:
CMD:ajuda(playerid, params[]);
Correto:
pawn Code:
CMD:ajuda(playerid, params[])



Re: 2 Erros Chatos - Owtsiixx_Twd - 21.08.2012

Pedro fiz isso e deu

pawn Code:
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : error 029: invalid expression, assumed zero
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : error 029: invalid expression, assumed zero
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : warning 215: expression has no effect
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : warning 215: expression has no effect
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : warning 215: expression has no effect
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : warning 215: expression has no effect
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : warning 215: expression has no effect
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : error 001: expected token: ";", but found ")"
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.



Re: 2 Erros Chatos - Jason` - 21.08.2012

pawn Code:
->Ajuda<-
Troque essa definiзгo, vocк estб usando caracteres que nгo devem ser usados neste tipo de coisa, posto que sгo operadores, troque por, por exemplo:

pawn Code:
DIALOG_AJUDA



Re: 2 Erros Chatos - Dolby - 21.08.2012

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Tem parвmetros errados nisto ai...


Re: 2 Erros Chatos - Owtsiixx_Twd - 21.08.2012

Pedro fiz isso e deu isso
mais ta quase

pawn Code:
C:\Users\Juninho\Desktop\GMS\meugm.pwn(212) : error 017: undefined symbol "DIALOG_AJUDA"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Re: 2 Erros Chatos - Jason` - 21.08.2012

vocк tem que definir, da mesma maneira que definiu ->Ajuda<-


Re: 2 Erros Chatos - Owtsiixx_Twd - 21.08.2012

era so criar uma define mesmo 0--'


Re: 2 Erros Chatos - Maklister - 21.08.2012

pawn Code:
// no topo do GameMode
#define DIALOG_AJUDA      95