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.
new dialog_string[500000];
format(dialog_string, sizeof(dialog_string), "%s", NomeORG(playerid));
ShowPlayerDialog(playerid, 46, DIALOG_STYLE_TABLIST, dialog_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
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 |
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
new dialog_string[500000000];
format(dialog_string, sizeof(dialog_string), "%s", NomeORG(playerid));
ShowPlayerDialog(playerid, 46, DIALOG_STYLE_TABLIST, dialog_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
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_TABLIST, "Buy Weapon",
"Deagle\t$5000\t100\n\
Sawnoff\t$5000\t100\n\
Pistol\t$1000\t50", // Etc.
"Select", "Cancel");
new dialog_string[500000000];
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_TABLIST, dialog_string, ....);
new string[128];
new esstringg[60];
format(esstringg, sizeof(esstringg), "\t{FFFFFF} Maconha:%d",CofreOrg[GetPlayerOrg(playerid)][Maconha]);
strcat(string, esstringg);
ShowPlayerDialog(playerid, DIALOG_VSALDO, DIALOG_STYLE_TABLIST, "Exemplo", string, "Fechar", "");