SA-MP Forums Archive
Have some error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Have some error (/showthread.php?tid=540506)



Have some error - ThunderX - 05.10.2014

pawn Код:
C:\Users\BOONTAWEE\Desktop\samp test system\filterscripts\RadioSystem.pwn(52) : error 075: input line too long (after substitutions)
C:\Users\BOONTAWEE\Desktop\samp test system\filterscripts\RadioSystem.pwn(53) : error 037: invalid string (possibly non-terminated string)
C:\Users\BOONTAWEE\Desktop\samp test system\filterscripts\RadioSystem.pwn(53) : error 029: invalid expression, assumed zero
C:\Users\BOONTAWEE\Desktop\samp test system\filterscripts\RadioSystem.pwn(53) : error 017: undefined symbol "n"
C:\Users\BOONTAWEE\Desktop\samp test system\filterscripts\RadioSystem.pwn(53) : fatal error 107: too many error messages on one line
pawn Код:
Audio_SetVolume(playerid, Radio[playerid], 100);
            ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST, "Radio System by TX-MUSIC-RADIO!!!", "\n{FF1400}0- Am I Wrong\n{FFB400}1-One Direction - Story of My Life\n{DCDCDC}2-Miley Cyrus - Wrecking Ball\n{19FF00}3-american authors - best day of my life\n{FF00D7}4-Avicii, Aloe Blacc - Wake Me Up\n{CD0000}5-let her go\n{2800FF}6-World Championship\n{F5FF00}7-Imagine Dragons - Demons\n{C800FF}8-Lorde - Royals\n{FF6400}9-Austin Mahone - Say Somethin\n{FFD200}10-A Great Big World & Christina Aguilera - Say Something\n{FF3C00}11-Pitbull - Timber ft. Ke$ha\n{EBFF00}12-Eminem - The Monster\n{007DFF}13- I Have nothing\n{00FFF0}14-JAY Z ft Justin Timberlake - Holy Grail\n{FF000F}[STOP RADIO]", "Okay", "Exit");
            return SendClientMessage(playerid,COLOR_GREEN,"Chouse some music radio which you want to listen!");

how to fix this ?


Re: Have some error - MasonSFW - 05.10.2014

Your Dialog list its too long

Use this strcat for Dialog

pawn Код:
Audio_SetVolume(playerid, Radio[playerid], 100);
        new string[952];
        strcat(string, "0- Am I Wrong\n");
        strcat(string, "1-One Direction - Story of My Life\n");
        strcat(string, "2-Miley Cyrus - Wrecking Ball\n");
        strcat(string, "3-american authors - best day of my life\n");
        strcat(string, "4-Avicii, Aloe Blacc - Wake Me Up\n");
        strcat(string, "5-let her go\n");
        strcat(string, "6-World Championship\n");
        strcat(string, "7-Imagine Dragons - Demons\n");
        strcat(string, "8-Lorde - Royals\n");
        strcat(string, "9-Austin Mahone - Say Something\n");
        strcat(string, "10-A Great Big World & Christina Aguilera - Say Something\n");
        strcat(string, "11-Pitbull - Timber ft. Ke$ha\n");
        strcat(string, "12-Eminem - The Monster\n");
        strcat(string, "13- I Have nothing\n");
        strcat(string, "14-JAY Z ft Justin Timberlake - Holy Grail\n");
        strcat(string, "[STOP RADIO]");
        ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST, "Radio System by TX-MUSIC-RADIO!!!", string, "Okay", "Exit");
        return SendClientMessage(playerid, COLOR_GREEN, "Chouse some music radio which you want to listen!");