[Ajuda] Dialogo 0.3.7
#1

Olб.. estou tentando fazer um dialogo 0.3.7, mais estб mostrando erros, eu nгo estou conseguindo consertar ou encontrar uma logica.. complexo..

Код:
C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(28777) : error 027: invalid character constant
C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(28777) : error 027: invalid character constant
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
PHP код:
new dialog_string[500000];
format(dialog_stringsizeof(dialog_string), "%s"NomeORG(playerid));
ShowPlayerDialog(playerid46DIALOG_STYLE_TABLISTdialog_string"Salбrios\n\Dinheiro\t$%d\n\Materiais\t%d\n\Maconha\t%d\n\Cocaнna\t%d""Confirmar""Fechar"CofreOrg[GetPlayerOrg(playerid)][Dinheiro], CofreOrg[GetPlayerOrg(playerid)][Materiais], CofreOrg[GetPlayerOrg(playerid)][Maconha], CofreOrg[GetPlayerOrg(playerid)][Cocaina]); //error 
Reply
#2

Pelo destaque de sintaxe do sublime facilmente descobre o erro...
http://prntscr.com/7lptja
Os locais vermelhos sгo invбlidos, ja que os caracteres vбlidos em pawn sгo apenas estes
Vocк pode ignorar isto colocando uma \ no inicio do parametro com string.
@Edit
Mas lembre-se que a \ ignora todos os caracteres de escape
Reply
#3

Quote:
Originally Posted by Day_
Посмотреть сообщение
Pelo destaque de sintaxe do sublime facilmente descobre o erro...
http://prntscr.com/7lptja
Os locais vermelhos sгo invбlidos, ja que os caracteres vбlidos em pawn sгo apenas estes
Vocк pode ignorar isto colocando uma \ no inicio do parametro com string.
@Edit
Mas lembre-se que a \ ignora todos os caracteres de escape
Qual й este editor? Oo ... disponibiliza?

@topic
vou tentar
Reply
#4

Quote:
Originally Posted by JoshNudock
Посмотреть сообщение
Qual й este editor? Oo ... disponibiliza?

@topic
vou tentar
Sublime Text 2, o .tmTheme e o .tmLanguage, eu que fiz se vocк for querer manda MP.
Reply
#5

Код:
C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(28709) : warning 202: number of arguments does not match definition
C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(28709) : warning 202: number of arguments does not match definition
C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(28709) : warning 202: number of arguments does not match definition
C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(28709) : warning 202: number of arguments does not match definition
PHP код:
new dialog_string[500000000];
format(dialog_stringsizeof(dialog_string), "%s"NomeORG(playerid));
ShowPlayerDialog(playerid46DIALOG_STYLE_TABLISTdialog_string"Salбrios\nDinheiro\t$%d\nMateriais\t%d\nMaconha\t%d\nCocaнna\t%d""Confirmar""Fechar"CofreOrg[GetPlayerOrg(playerid)][Dinheiro], CofreOrg[GetPlayerOrg(playerid)][Materiais], CofreOrg[GetPlayerOrg(playerid)][Maconha], CofreOrg[GetPlayerOrg(playerid)][Cocaina]); //error 
Ainda nгo deu certo, nгo mostra assim:


wiki:
PHP код:
ShowPlayerDialog(playeriddialogidDIALOG_STYLE_TABLIST"Buy Weapon",
"Deagle\t$5000\t100\n\
Sawnoff\t$5000\t100\n\
Pistol\t$1000\t50"
// Etc.
"Select""Cancel"); 
Reply
#6

pawn Код:
new dialog_string[500000000];
Oh My God! Pra que fazer isso?

500000000 de cйlulas para uma dialog? Vocк nгo deve fazer ideia de como isso vai prejudicar seu GM.
Reply
#7

Код:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_TABLIST, dialog_string, ....);
Copiou errado aн, lesk...
A propуsito, diminuн essa quantidade de cйlulas como o amiguinho disse acima.

E outra, o dialog nгo formata mensagem.
Use strcat + format .

Exemplo:
PHP код:
    new string[128];
    new 
esstringg[60];
                 
format(esstringgsizeof(esstringg), "\t{FFFFFF} Maconha:%d",CofreOrg[GetPlayerOrg(playerid)][Maconha]);
        
strcat(stringesstringg);
        
ShowPlayerDialog(playeridDIALOG_VSALDODIALOG_STYLE_TABLIST"Exemplo"string"Fechar"""); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)