Help On Dialog !
#1

pawn Код:
ShowPlayerDialog(playerid,DIALOG_AMMUNATION,DIALOG_STYLE_TABLIST_HEADERS,"{FF0000}Menu Gun Shop",
        "{FFFFFF}Aslahe\t{c7c7e2}Tir\t{FFFF00}Gheimat\n\
        9mm\t{c7c7e2}Tir\t{FFFF00}$29,400\n\
        9mm Silenced\t{c7c7e2}Tir\t{FFFF00}$31,500\n\
        Desert Eagle\t{c7c7e2}Tir\t{FFFF00}$63,000\n\
        Shotgun\t{c7c7e2}Tir\t{FFFF00}$91,000\n\
        Sawnoff Shotgun\t{c7c7e2}Tir\t{FFFF00}$140,000\n\
        Combat Shotgun\t{c7c7e2}Tir\t{FFFF00}$147,000\n\
        Micro SMG/Uzi\t{c7c7e2}Tir\t{FFFF00}$112,000\n\
        MP5\t{c7c7e2}Tir\t{FFFF00}$98,000\n\
        AK-47\t{c7c7e2}Tir\t{FFFF00}$84,000\n\
        M4\t{c7c7e2}Tir\t{FFFF00}$91,000\n\
        Tec-9\t{c7c7e2}Tir\t{FFFF00}$105,000\n\
        Country Rifle\t{c7c7e2}Tir\t{FFFF00}$49,000\n\
        Sniper Rifle\t{c7c7e2}Tir\t{FFFF00}$126,000\n\
        Chainsaw\t{c7c7e2}Tir\t{FFFF00}$70,000\n\
        Armour\t{c7c7e2}Tir\t{FFFF00}$10,000"
,"Kharid","Enseraf");
pawn Код:
.pwn(14376 -- 14388) : error 075: input line too long (after substitutions)
.pwn(14389) : error 017: undefined symbol "FFFFFF"
.pwn(14389) : error 017: undefined symbol "Aslahe"
.pwn(14389) : error 029: invalid expression, assumed zero
.pwn(14389) : fatal error 107: too many error messages on one line

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


5 Errors.
What is wrong ?
Reply
#2

Hello!

Try this.
PHP код:
new str[750];
strcat(str,"{FFFFFF}Aslahe\t{c7c7e2}Tir\t{FFFF00}Gheimat\n9mm\t{c7c7e2}Tir\t{FFFF00}$29,400\n9mm Silenced\t{c7c7e2}Tir\t{FFFF00}$31,500\n");
strcat(str,"Desert Eagle\t{c7c7e2}Tir\t{FFFF00}$63,000\nShotgun\t{c7c7e2}Tir\t{FFFF00}$91,000\nSawnoff Shotgun\t{c7c7e2}Tir\t{FFFF00}$140,000\n");
strcat(str,"Combat Shotgun\t{c7c7e2}Tir\t{FFFF00}$147,000\nMicro SMG/Uzi\t{c7c7e2}Tir\t{FFFF00}$112,000\nMP5\t{c7c7e2}Tir\t{FFFF00}$98,000\n");
strcat(str,"AK-47\t{c7c7e2}Tir\t{FFFF00}$84,000\nM4\t{c7c7e2}Tir\t{FFFF00}$91,000\nTec-9\t{c7c7e2}Tir\t{FFFF00}$105,000\nCountry Rifle\t{c7c7e2}Tir\t{FFFF00}$49,000\n");
strcat(str,"Sniper Rifle\t{c7c7e2}Tir\t{FFFF00}$126,000\nChainsaw\t{c7c7e2}Tir\t{FFFF00}$70,000\nArmour\t{c7c7e2}Tir\t{FFFF00}$10,000");
ShowPlayerDialog(playerid,DIALOG_AMMUNATION,DIALOG_STYLE_TABLIST_HEADERS,"{FF0000}Menu Gun Shop",str,"Kharid","Enseraf"); 
If you take your way, PAWN will do this while the compile in a one row.
I hope you understand this.
Reply
#3

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

Try this.
PHP код:
new str[750];
strcat(str,"{FFFFFF}Aslahe\t{c7c7e2}Tir\t{FFFF00}Gheimat\n9mm\t{c7c7e2}Tir\t{FFFF00}$29,400\n9mm Silenced\t{c7c7e2}Tir\t{FFFF00}$31,500\n");
strcat(str,"Desert Eagle\t{c7c7e2}Tir\t{FFFF00}$63,000\nShotgun\t{c7c7e2}Tir\t{FFFF00}$91,000\nSawnoff Shotgun\t{c7c7e2}Tir\t{FFFF00}$140,000\n");
strcat(str,"Combat Shotgun\t{c7c7e2}Tir\t{FFFF00}$147,000\nMicro SMG/Uzi\t{c7c7e2}Tir\t{FFFF00}$112,000\nMP5\t{c7c7e2}Tir\t{FFFF00}$98,000\n");
strcat(str,"AK-47\t{c7c7e2}Tir\t{FFFF00}$84,000\nM4\t{c7c7e2}Tir\t{FFFF00}$91,000\nTec-9\t{c7c7e2}Tir\t{FFFF00}$105,000\nCountry Rifle\t{c7c7e2}Tir\t{FFFF00}$49,000\n");
strcat(str,"Sniper Rifle\t{c7c7e2}Tir\t{FFFF00}$126,000\nChainsaw\t{c7c7e2}Tir\t{FFFF00}$70,000\nArmour\t{c7c7e2}Tir\t{FFFF00}$10,000");
ShowPlayerDialog(playerid,DIALOG_AMMUNATION,DIALOG_STYLE_TABLIST_HEADERS,"{FF0000}Menu Gun Shop",str,"Kharid","Enseraf"); 
If you take your way, PAWN will do this while the compile in a one row.
I hope you understand this.
Thanks a lot . yes i understand
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)