Jump to content
  • 0

pomoc Errory u radia


Guest Sacre

Dotaz

Zkousel sem dat do modu radio jenze mi to haze warningy : warning 215: expression has no effect

Zkousel sem i hledat a i to nejak opravit ale zajimave ze kdyz to dam jako FS tak to jede ale kdyz to dam do gamemodu tak mi to haze tyto chyby nevite ?

Kod :

if(dialogid == 628)
{
if(response == 1)
{
   switch(dialogid)
       {
	case 1:
   	    {
          	switch(listitem)
       	{
       	    case 0:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 1:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 2:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 3:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 4:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 6:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 7:
       	    {
       	       StopAudioStreamForPlayer(playerid);
       	    }
       	}
   	    }
}
}
   return 1;
}

Link to comment
Share on other sites

16 odpovědí na tuto otázku

Recommended Posts

  • 0
Zkousel sem dat do modu radio jenze mi to haze warningy : warning 215: expression has no effect

Zkousel sem i hledat a i to nejak opravit ale zajimave ze kdyz to dam jako FS tak to jede ale kdyz to dam do gamemodu tak mi to haze tyto chyby nevite ?

Kod :

if(dialogid == 628)
{
if(response == 1)
{
   switch(dialogid)
       {
	case 1:
   	    {
          	switch(listitem)
       	{
       	    case 0:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 1:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 2:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 3:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 4:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 6:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
       	    }
       	    case 7:
       	    {
       	       StopAudioStreamForPlayer(playerid);
       	    }
       	}
   	    }
}
}
   return 1;
}

 

Čo tam porába to switch(dialogid) ?

Link to comment
Share on other sites

  • 0

if(dialogid == 628)
{
if(response == 1)
{
    if(listitem == 0) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
    else if(listitem == 1) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
    else if(listitem == 2) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
    else if(listitem == 3) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
    else if(listitem == 4) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
    else if(listitem == 5) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
    else if(listitem == 6) StopAudioStreamForPlayer(playerid);
}
return true;
}

Tady to máš.

Link to comment
Share on other sites

  • 0

warning 215: expression has no effect

warning 215: expression has no effect

warning 215: expression has no effect

warning 215: expression has no effect

warning 215: expression has no effect

warning 215: expression has no effect

warning 215: expression has no effect

Link to comment
Share on other sites

  • 0

stáhni si 0.3d pawno

 

a pak si překontroluj public OnDialogResponse jestli ho máš dobře ukončenej.

 

takhle by měl vypadat celí public ;)

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

if(dialogid == 628)
{
  if(response == 1)
  {
      if(listitem == 0) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
      else if(listitem == 1) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
      else if(listitem == 2) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
      else if(listitem == 3) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
      else if(listitem == 4) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
      else if(listitem == 5) PlayAudioStreamForPlayer(playerid, "http://www.radio.cz");
      else if(listitem == 6) StopAudioStreamForPlayer(playerid);
  }
  return 1;
}
return 0;
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...