[Ajuda] 2 Erros Chatos
#1

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.
Reply
#2

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

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.
Reply
#4

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
Reply
#5

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

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.
Reply
#7

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

era so criar uma define mesmo 0--'
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)