Help me Error Dialog
#1

Quote:

else if(dialogid == TOP50LISTEN)
{
if(response)
{
ShowPlayerDialog(playerid,CHINHNHAC,DIALOG_STYLE_L IST,"TOP 30 Bai Hat","Dai Ca 12A - Vanh Leg\nBuon Cua Anh - K-ICM, Рat G, Masew\nSong Xa Anh Chang De Dang - Bao Anh\nDa Lo Yeu Em Nhieu - JustaTee\nKem Duyen - Rum, NIT, Masew \nCham Khe vao Tim Anh - Noo Phuoc Thinh\nMat Troi Cua Em - Phuong Ly, JustaTee\nThay la Yeu Thuong - OnlyC\nYeu Chua Bao Gio La Sai - ERIK\nEm Gai Mua - Huong Tram\nTa Con Yeu Nhau - Duc Phuc\nYeu Em Rat Nhieu - Hoang Ton\nYeu Tu Phia Xa - Chi Dan\nTuy Am - Xesi, Masew, Nhat Nguyen\nTalk To Me - Chi Pu\nEm Biet - Trinh Dinh Quang\nChieu Hom Ay - Jaykii\nSave Me - DEAM\nLac Troi - Son Tung MTP\nNoi Nay Co Anh - Son Tung MTP\n1234 - Chi Dan\nCo Em Cho - Min, Mr.A\nPhia Sau Mot Co Gai - Soobin Hoang Son\nLo Yeu Mat Roi - Han Sara, Tung Maru\nXin Dung Lang Im - Soobin Hoang Son\nNgay Mai Em Di - Touliver, Le Hieu, Soobin Hoang Son\nTu Hom Nay - Chi Pu\nYeu 5 - Rhymastic\nShape Of You - Ed Sheeran\nYeu La Tha Thu - OnlyC", "Lua chon", "Dong");
}
}

Help me! Error
Reply
#2

https://pastebin.com/PYdMSR1i
Error Line ... I dont know
Reply
#3

what's the error?
Reply
#4

Like rfr said, please tell what is the error and use strcat to make everybody's (including yours) life easier.
Reply
#5

Oh Sorry, I'm a little hasty
Error:
./includes/ngg.pwn(123023) : error 075: input line too long (after substitutions)
./includes/ngg.pwn(123024) : error 017: undefined symbol "Dai"
./includes/ngg.pwn(123024) : error 017: undefined symbol "Ca"
./includes/ngg.pwn(123024) : error 029: invalid expression, assumed zero
./includes/ngg.pwn(123024) : fatal error 107: too many error messages on one line

You can help me?, please?
Reply
#6

PHP код:
 new DaiCa
Where did you get ngg.pwn from?
Reply
#7

I get NGG.pwn in Forum.sa-mp.click
Reply
#8

Quote:
Originally Posted by rfr
Посмотреть сообщение
PHP код:
 new DaiCa
Where did you get ngg.pwn from?
Pretty sure they aren't supposed to be variable, from what I see its an issue with quotations.

Anyway, please rewrite that dialog's code using strcat -
https://sampwiki.blast.hk/wiki/Strcat

This will make solve all the existing errors except the "Dai, ca" one which I believe will be easy to spot once its readable.
Reply
#9

PHP код:
else if(dialogid == TOP50LISTEN)
{
    if(!
response) return 1;
//array size ~864
    
new bigList[864] = "Dai Ca 12A - Vanh Leg\nBuon Cua Anh - K-ICM, ?at G, Masew\n\
    Song Xa Anh Chang De Dang - Bao Anh\nDa Lo Yeu Em Nhieu - JustaTee\n\
    Kem Duyen - Rum, NIT, Masew \nCham Khe vao Tim Anh - Noo Phuoc Thinh\n\
    Mat Troi Cua Em - Phuong Ly, JustaTee\nThay la Yeu Thuong - OnlyC\n\
    Yeu Chua Bao Gio La Sai - ERIK\nEm Gai Mua - Huong Tram\n\
    Ta Con Yeu Nhau - Duc Phuc\nYeu Em Rat Nhieu - Hoang Ton\n"
;
    
strcat(bigList"Yeu Tu Phia Xa - Chi Dan\nTuy Am - Xesi, Masew, Nhat Nguyen\n\
    Talk To Me - Chi Pu\nEm Biet - Trinh Dinh Quang\nChieu Hom Ay - Jaykii\n\
    Save Me - DEAM\nLac Troi - Son Tung MTP\nNoi Nay Co Anh - Son Tung MTP\n\
    1234 - Chi Dan\nCo Em Cho - Min, Mr.A\nPhia Sau Mot Co Gai - Soobin Hoang Son\n"
);
    
strcat(bigList"Lo Yeu Mat Roi - Han Sara, Tung Maru\nXin Dung Lang Im - Soobin Hoang Son\n\
    Ngay Mai Em Di - Touliver, Le Hieu, Soobin Hoang Son\nTu Hom Nay - Chi Pu\n\
    Yeu 5 - Rhymastic\nShape Of You - Ed Sheeran\nYeu La Tha Thu - OnlyC"
);
    
ShowPlayerDialog(playeridCHINHNHACDIALOG_STYLE_LIST"TOP 30 Bai Hat"bigList"Lua chon""Dong");

example of use
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)