SA-MP Forums Archive
Please help me - 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: Please help me (/showthread.php?tid=414057)



Please help me - Godzilla8957 - 07.02.2013

for some reason.. i keep getting warning 217: loose indentation could someone please help me
Код:
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay (Test Server)\gamemodes\MaxedOutRoleplay.pwn(10195) : warning 217: loose indentation
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay (Test Server)\gamemodes\MaxedOutRoleplay.pwn(10198) : warning 217: loose indentation

Код:
if(listitem == 0)
       {
               ShowPlayerDialog(playerid, 9313, DIALOG_STYLE_LIST, "Choose the channel you would like to listen!", "977 The Hitz Channel\n977 The 80s Channel\n181.FM - POWER 181\n1POWER\n108.FM - THE HITLIST\nChroniX Metal\nHOT 108 JAMZ\nSpart FM Tupac Channel\nAlex Jones FM\nFrench Kiss FM\nBlackBeat FM\nDEFJAY\nPower Hitz\nSky FM\nOld School 99\nTrance Channel\nIbiza Sonica", "Select", "Cancel"); // Here, you can add any channel you want, incase you have the streaming URL for it
       }
   if(listitem == 1)
       {
           StopAudioStreamForPlayer(playerid); // Now, this will turn the radio stream off, this means you won't be able to hear the streaming.
               SendClientMessage(playerid, COLOR_BLUE, "");



Re: Please help me - Jonesy96 - 07.02.2013

I think it's this. Don;t count on it though, I'm fairly new to scripting

Код:
if(listitem == 0)
       {
               ShowPlayerDialog(playerid, 9313, DIALOG_STYLE_LIST, "Choose the channel you would like to listen!", "977 The Hitz Channel\n977 The 80s Channel\n181.FM - POWER 181\n1POWER\n108.FM - THE HITLIST\nChroniX Metal\nHOT 108 JAMZ\nSpart FM Tupac Channel\nAlex Jones FM\nFrench Kiss FM\nBlackBeat FM\nDEFJAY\nPower Hitz\nSky FM\nOld School 99\nTrance Channel\nIbiza Sonica", "Select", "Cancel"); // Here, you can add any channel you want, incase you have the streaming URL for it
       }
   if(listitem == 1)
       {
           StopAudioStreamForPlayer(playerid); // Now, this will turn the radio stream off, this means you won't be able to hear the streaming.
           SendClientMessage(playerid, COLOR_BLUE, "");



Re: Please help me - Noles2197 - 07.02.2013

Try that

pawn Код:
if(listitem == 0)
{
    ShowPlayerDialog(playerid, 9313, DIALOG_STYLE_LIST, "Choose the channel you would like to listen!", "977 The Hitz Channel\n977 The 80s Channel\n181.FM - POWER 181\n1POWER\n108.FM - THE HITLIST\nChroniX Metal\nHOT 108 JAMZ\nSpart FM Tupac Channel\nAlex Jones FM\nFrench Kiss FM\nBlackBeat FM\nDEFJAY\nPower Hitz\nSky FM\nOld School 99\nTrance Channel\nIbiza Sonica", "Select", "Cancel"); // Here, you can add any channel you want, incase you have the streaming URL for it
}
if(listitem == 1)
{
    StopAudioStreamForPlayer(playerid); // Now, this will turn the radio stream off, this means you won't be able to hear the streaming.
    SendClientMessage(playerid, COLOR_BLUE, "");
}



Re: Please help me - Hanger - 07.02.2013

https://sampforum.blast.hk/showthread.php?tid=251335


Re: Please help me - Godzilla8957 - 07.02.2013

Quote:
Originally Posted by Noles2197
Посмотреть сообщение
Try that

pawn Код:
if(listitem == 0)
{
    ShowPlayerDialog(playerid, 9313, DIALOG_STYLE_LIST, "Choose the channel you would like to listen!", "977 The Hitz Channel\n977 The 80s Channel\n181.FM - POWER 181\n1POWER\n108.FM - THE HITLIST\nChroniX Metal\nHOT 108 JAMZ\nSpart FM Tupac Channel\nAlex Jones FM\nFrench Kiss FM\nBlackBeat FM\nDEFJAY\nPower Hitz\nSky FM\nOld School 99\nTrance Channel\nIbiza Sonica", "Select", "Cancel"); // Here, you can add any channel you want, incase you have the streaming URL for it
}
if(listitem == 1)
{
    StopAudioStreamForPlayer(playerid); // Now, this will turn the radio stream off, this means you won't be able to hear the streaming.
    SendClientMessage(playerid, COLOR_BLUE, "");
}
i put that in pawno but i still get a few more warnings.. i have tried fixing it but it will give me more warnings everytime i fix it

Код:
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay (Test Server)\gamemodes\MaxedOutRoleplay.pwn(10187) : warning 217: loose indentation
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay (Test Server)\gamemodes\MaxedOutRoleplay.pwn(10204) : warning 217: loose indentation
Код:
if(dialogid == 9312)
	{
    if(response)
    {
	if(listitem == 0)
	{
	    ShowPlayerDialog(playerid, 9313, DIALOG_STYLE_LIST, "Choose the channel you would like to listen!", "977 The Hitz Channel\n977 The 80s Channel\n181.FM - POWER 181\n1POWER\n108.FM - THE HITLIST\nChroniX Metal\nHOT 108 JAMZ\nSpart FM Tupac Channel\nAlex Jones FM\nFrench Kiss FM\nBlackBeat FM\nDEFJAY\nPower Hitz\nSky FM\nOld School 99\nTrance Channel\nIbiza Sonica", "Select", "Cancel"); // Here, you can add any channel you want, incase you have the streaming URL for it
	}
	if(listitem == 1)
	{
	    StopAudioStreamForPlayer(playerid); // Now, this will turn the radio stream off, this means you won't be able to hear the streaming.
	    SendClientMessage(playerid, COLOR_BLUE, "");
	}
    return 1;
            }
        }

	if(dialogid == 19993)



Re: Please help me - Luis- - 07.02.2013

Paste your script here and it'll fix it. http://dracoblue.net/tidy/pawn/