[Ajuda] Erro em Define em Dialog
#1

Galera, isso tб dando erro:
pawn Код:
#define NUMERO 10
ShowPlayerDialog(playerid, DIALOG_PONTOS_SPAWN, DIALOG_STYLE_INPUT, "Nъmero", "Escolha um nъmero de 1 a "NUMERO, "Confirmar", "Cancelar");
Tб dando esses erros:
pawn Код:
error 001: expected token: "-string end-", but found "-identifier-"
warning 215: expression has no effect
error 001: expected token: ";", but found "-string-"
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
fatal error 107: too many error messages on one line
Preciso muito disso gente, me ajudem por favor. Como devo colocar uma define no meio do Dialog como no exemplo acima que tб dando esses erros?

Desde jб, muito obrigado! Abraзos!

@Edit

Mais um exemplo do que quero e dб erro:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_PONTOS_SPAWN, DIALOG_STYLE_INPUT, "Nъmero", "Quero colocar um"DEFINE"bem aqui!", "Confirmar", "Cancelar");
Reply
#2

falta ); no final do showplayer dialog, falta tirar a ultima virgula dele tbm.
Reply
#3

pawn Код:
#define NUMERO "10"
ShowPlayerDialog(playerid, DIALOG_PONTOS_SPAWN, DIALOG_STYLE_INPUT, "Nъmero", "Escolha um nъmero de 1 a "NUMERO"", "Confirmar", "Cancelar");
Reply
#4

Ola

Tenta assim;

pawn Код:
#define Branco 0xFFFFFFAA
#define VALOR_MINIMO 1
#define VALOR_MAXIMO 10

    new PT[35];
    format(PT, sizeof(PT), "Escolha um nъmero de %d a %d!", VALOR_MINIMO, VALOR_MAXIMO);
    SendClientMessage(playerid, Branco, PT);
    ShowPlayerDialog(playerid, DIALOG_PONTOS_SPAWN, DIALOG_STYLE_INPUT, "Numero", PT, "Confirmar", "Cancelar");
    return 1;
}
Espero ajudar

PT
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)