Some errors
#1

Код:
C:\Users\Mido\Desktop\h\gamemodes\VGRP.pwn(73320) : error 014: invalid statement; not in switch
C:\Users\Mido\Desktop\h\gamemodes\VGRP.pwn(73320) : warning 215: expression has no effect
C:\Users\Mido\Desktop\h\gamemodes\VGRP.pwn(73320) : error 001: expected token: ";", but found ":"
C:\Users\Mido\Desktop\h\gamemodes\VGRP.pwn(73320) : error 029: invalid expression, assumed zero
C:\Users\Mido\Desktop\h\gamemodes\VGRP.pwn(73320) : fatal error 107: too many error messages on one line
Guys, please, PLEASE reply

Line 73320:
Код:
case 1:PlayAudioStreamForPlayer(playerid, "http://*******/8vzU");
Reply
#2

Show the code around line 73320.
Reply
#3

Код:
case 0:PlayAudioStreamForPlayer(playerid, "http://googl/8vzU");
            case 1:PlayAudioStreamForPlayer(playerid, "http://googl/EpvrRb");
            case 2:PlayAudioStreamForPlayer(playerid, "http://googl/SQpQUd");
            case 3:PlayAudioStreamForPlayer(playerid, "http://tunermixnation.de");
            case 4:PlayAudioStreamForPlayer(playerid, "http://googl/V1JTjt");
            case 5:SendClientMessage(playerid, COLOR_RED, "Under Construction");
            return 1;
Reply
#4

To use
pawn Код:
case 1
you must use a switch!!
Like this:
pawn Код:
switch(option)
{
case 0:PlayAudioStreamForPlayer(playerid, "http://googl/8vzU");
            case 1:PlayAudioStreamForPlayer(playerid, "http://googl/EpvrRb");
            case 2:PlayAudioStreamForPlayer(playerid, "http://googl/SQpQUd");
            case 3:PlayAudioStreamForPlayer(playerid, "http://tunermixnation.de");
            case 4:PlayAudioStreamForPlayer(playerid, "http://googl/V1JTjt");
            case 5:SendClientMessage(playerid, COLOR_RED, "Under Construction");
}
And remove return 1, what is the sense of that?
Reply
#5

Код:
if(dialogid == 80)
  {
	if(response == 1)
	  {
	        {
            case 0:PlayAudioStreamForPlayer(playerid, "http://googl/8vzU");
            case 1:PlayAudioStreamForPlayer(playerid, "http://googl/EpvrRb");
            case 2:PlayAudioStreamForPlayer(playerid, "http://googl/SQpQUd");
            case 3:PlayAudioStreamForPlayer(playerid, "http://tunermixnation.de");
            case 4:PlayAudioStreamForPlayer(playerid, "http://googl/V1JTjt");
            case 5:SendClientMessage(playerid, COLOR_RED, "Under Construction");
            return 1;
		}
	  }
  }
Whole code.
Reply
#6

That should be:
pawn Код:
if(dialogid == 80)
{
    if(response == 1)
    {
        switch(listitem)
        {
            case 0:PlayAudioStreamForPlayer(playerid, "http://googl/8vzU");
            case 1:PlayAudioStreamForPlayer(playerid, "http://googl/EpvrRb");
            case 2:PlayAudioStreamForPlayer(playerid, "http://googl/SQpQUd");
            case 3:PlayAudioStreamForPlayer(playerid, "http://tunermixnation.de");
            case 4:PlayAudioStreamForPlayer(playerid, "http://googl/V1JTjt");
            case 5:SendClientMessage(playerid, COLOR_RED, "Under Construction");
        }
        return 1;
    }
}
I was the first haha :P
Reply
#7

pawn Код:
if(dialogid == 80)
{
    if(response == 1)
    {
            switch(listitem)
            {
                case 0:PlayAudioStreamForPlayer(playerid, "http://googl/8vzU");
                case 1:PlayAudioStreamForPlayer(playerid, "http://googl/EpvrRb");
                case 2:PlayAudioStreamForPlayer(playerid, "http://googl/SQpQUd");
                case 3:PlayAudioStreamForPlayer(playerid, "http://tunermixnation.de");
                case 4:PlayAudioStreamForPlayer(playerid, "http://googl/V1JTjt");
                case 5:SendClientMessage(playerid, COLOR_RED, "Under Construction");
            }
    }
}
EDIT: See above.
Reply
#8

pawn Код:
if(dialogid == 80)
{
    if(response == 1)
    {
        switch(listitem)
        {
                case 0:PlayAudioStreamForPlayer(playerid, "http://googl/8vzU");
                case 1:PlayAudioStreamForPlayer(playerid, "http://googl/EpvrRb");
                case 2:PlayAudioStreamForPlayer(playerid, "http://googl/SQpQUd");
                case 3:PlayAudioStreamForPlayer(playerid, "http://tunermixnation.de");
                case 4:PlayAudioStreamForPlayer(playerid, "http://googl/V1JTjt");
                case 5:SendClientMessage(playerid, COLOR_RED, "Under Construction");
        }
    }  
}
EDIT: Everyone replied at the same time
EDIT2: Those audio streams will not play though. They need to end with an extension such as .mp3 or .pls.
Reply
#9

Nevermind, I'm pretty stupid.
Reply
#10

--

Removed in respect of Mionee
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)