Error 75 & Error 17 Please can help?
#1

Please don't judge or laugh.. I have only just started to try get in to Scripting.. (First project) Everyone has to start somewhere.. but i don't see what the problem is here :S

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mp3", cmdtext, true, 10) == 0)
	{
        SendClientMessage(playerid,COLOR_LIGHTGREEN,"{EEEEEE}[{7340DB}INFO{EEEEEE}] {DBED15}Welcome to the MP3 dialog, please select the song you would like to play.");
	ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST,"MP3 Player.","Coldplay - Viva La Vida\nThe Wanted - I found you\nEminem - Must be the Ganja\nEminem - 8 Mile\nCalvin Harris - Spectrum\nInfinity\nSum 41 - Hell Song\nThe Lumineers - Ho Hey\nLMFAO - Sexy and i know it\nSkrillex - Bangarang\nOlly Murs ft Fo-rida - Troublemaker\nRihanna - Diamonds\nNickey Romero - Toulouse\nKendrick L - Swimming pools\nThe script -Hall of Fame\nHouse Music (Mix)\nBig Bank Hank\nI need a dollar\nColdplay - Clocks\nColdplay - The scientist\nColdplay - Charlie Brown\nSasha Lopez - All my people [Brazilian]","Play","Exit");
    	return 1;
	}
	return 0;
}

Код:
C:\Users\Brandon\Desktop\MP3.pwn(41) : error 075: input line too long (after substitutions)
C:\Users\Brandon\Desktop\MP3.pwn(42) : error 037: invalid string (possibly non-terminated string)
C:\Users\Brandon\Desktop\MP3.pwn(42) : error 017: undefined symbol "Coldplay"
C:\Users\Brandon\Desktop\MP3.pwn(42) : error 017: undefined symbol "La"
C:\Users\Brandon\Desktop\MP3.pwn(42) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

You had better remove all those {eeeee} codes cause that are not use in scripting ...
Reply
#3

delete
Reply
#4

Quote:
Originally Posted by M3mPHi$_S3
Посмотреть сообщение
You had better remove all those {eeeee} codes cause that are not use in scripting ...
EEEEEE is fine, that's just a white color lol

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mp3", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid,COLOR_LIGHTGREEN,"{EEEEEE}[{7340DB}INFO{EEEEEE}] {DBED15}Welcome to the MP3 dialog, please select the song you would like to play.");
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST,"MP3 Player.","Coldplay - Viva La Vida\nThe Wanted - I found you\nEminem - Must be the Ganja\nEminem - 8 Mile\nCalvin Harris - Spectrum\nInfinity\nSum 41 - Hell Song\n\
        The Lumineers - Ho Hey\nLMFAO - Sexy and i know it\nSkrillex - Bangarang\nOlly Murs ft Fo-rida - Troublemaker\nRihanna - Diamonds\nNickey Romero - Toulouse\nKendrick L - Swimming pools\nThe script -Hall of Fame\n\
        House Music (Mix)\nBig Bank Hank\nI need a dollar\nColdplay - Clocks\nColdplay - The scientist\nColdplay - Charlie Brown\nSasha Lopez - All my people [Brazilian]"
,"Play","Exit");
        return 1;
    }
    return 0;
}
Try that out
Reply
#5

in case 01 : Yea that's changes color :S
Reply
#6

LOL i am still getting the same 5 errors xDD

Код:
C:\Users\Brandon\Desktop\MP3.pwn(43) : error 075: input line too long (after substitutions)
C:\Users\Brandon\Desktop\MP3.pwn(44) : error 037: invalid string (possibly non-terminated string)
C:\Users\Brandon\Desktop\MP3.pwn(44) : error 017: undefined symbol "Coldplay"
C:\Users\Brandon\Desktop\MP3.pwn(44) : error 017: undefined symbol "La"
C:\Users\Brandon\Desktop\MP3.pwn(44) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#7

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mp3", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid,COLOR_LIGHTGREEN,"{EEEEEE}[{7340DB}INFO{EEEEEE}] {DBED15}Welcome to the MP3 dialog, please select the song you would like to play.");
       
        new string[256]; // don't feel like countin out how many characters there is lol
        strcat(string, "Coldplay - Viva La Vida\nThe Wanted - I found you\nEminem - Must be the Ganja\nEminem - 8 Mile\nCalvin Harris - Spectrum\nInfinity\nSum 41 - Hell Song\nThe Lumineers - Ho Hey");
        strcat(string, "\nLMFAO - Sexy and i know it\nSkrillex - Bangarang\nOlly Murs ft Fo-rida - Troublemaker\nRihanna - Diamonds\nNickey Romero - Toulouse\nKendrick L - Swimming pools\nThe script -Hall of Fame");
        strcat(string, "\nHouse Music (Mix)\nBig Bank Hank\nI need a dollar\nColdplay - Clocks\nColdplay - The scientist\nColdplay - Charlie Brown\nSasha Lopez - All my people [Brazilian]");

        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST,"MP3 Player.",string,"Play","Exit");
        return 1;
    }
    return 0;
}
How about that?
Reply
#8

Thankyou that worked MUCH love + Rep!!!
Reply
#9

I forgot a \n in there btw (start of the second strcat) lol

https://sampwiki.blast.hk/wiki/Strcat
Reply
#10

+ Feel free to ask any question. Sa-mp wont laugh on you xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)