Jump to content
  • 0

Problema AudioStreamer


Question

Posted

if(strcmp(cmd, "/radio", true) == 0) {
{
        PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls");
	}
return 1;
}
De la aceasta comanda am ajuns la
		if(strcmp(cmd, "/radiocar", true) == 0)
		{
			if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
	        	{
				if(IsPlayerInVehicle(playerid, carid))
		      	  	{
					if(PlayerInfo[playerid][pDonateRank] > 1)
		        		{				                	   
       						PlayAudioStreamForPlayer(playerid,"http://stream.profm.ro:8012/profm.mp3");
						}
						return 1;
						}				        		}
                			else
                			SCM(playerid, COLOR_CRS3," ** You don't have a Premium Account.");
                			return 1;
                			}	
        			}
                		else
                		SCM(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
                		return 1;
                		}
           		else
              	  	SCM(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
              	 	 return 1;
       			}
		}

Si faza este ca imi tot da gamemodu 0 !

Ma puteti ajuta sa fac o comanda dinaceasca pentru radio

Sa fie doar in masina , doar daca detin cont premium si cum e mai sus sa nu se auda in biciclete ...:)

Va rog ca nu imi iese ma doare capu deja , nmuma 0 imi da !

7 answers to this question

Recommended Posts

Posted

Asa e bine:

if(strcmp(cmd, "/radiocar", true) == 0)
	{
			if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
  			{
				if(IsPlayerInVehicle(playerid, carid))
				{
					if(PlayerInfo[playerid][pDonateRank] > 1)
   					{
							PlayAudioStreamForPlayer(playerid,"http://stream.profm.ro:8012/profm.mp3");
					}
						return 1;
						{
						else
						SCM(playerid, COLOR_CRS3," ** You don't have a Premium Account.");
 						return 1;
         				}
						{
                		else
                		SCM(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
                		return 1;
						}
						{
						else
              	  		SCM(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
              	 	 	return 1;
						}
  				}
			}
	}

Posted

C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25754) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25755) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25759) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25760) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25776) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25777) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25781) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25782) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25798) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25799) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25803) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25804) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25734) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25812) : error 029: invalid expression, assumed zero

Cum rezolv warningurile astea si erorile :| sunt de la radio

Posted

C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25754) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25755) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25759) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25760) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25776) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25777) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25781) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25782) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25798) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25799) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25803) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25804) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25734) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(25812) : error 029: invalid expression, assumed zero

Cum rezolv warningurile astea si erorile :| sunt de la radio

Zi de la ce linii sunt erorile/avertizarile alea.
Posted

if(strcmp(cmd,"/radiocar",true)==0)
{
	if(PlayerInfo[playerid][pDonateRank] > 1)
   	{
		if(IsPlayerConnected(playerid))
		{
					new x_nr[256];
           				new carid = GetPlayerVehicleID(playerid);
           				new m;
           				m = GetVehicleModel(carid);
					new string[256];
  	       				x_nr = strtok(cmdtext, idx);
   	        			if(!strlen(x_nr))
   	        			{
  					SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________");
    					SendClientMessage(playerid, COLOR_GRAD2, "Syntax: /radiocar [name]");
     					SendClientMessage(playerid, COLOR_WHITE, "Available Name's: ProFm , ClubStation , ProB");
					SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________");
  					return 1;
					}
					if(strcmp(x_nr,"profm",true) == 0)
					{
						if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
						{
							if(IsPlayerInVehicle(playerid, carid))
							{

									PlayAudioStreamForPlayer(playerid,"http://stream.profm.ro:8012/profm.mp3");
									}
									return 1;
							{
  							else
  							SCM(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
   							return 1;
							}
						{
						else
 						SCM(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
	 					return 1;
					       	        }
  		   				}
			    	       }
				       if(strcmp(x_nr,"clubstation",true) == 0)
				       {
						if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
						{
							if(IsPlayerInVehicle(playerid, carid))
							{

									PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls");
									}
									return 1;
							{
  							else
  							SCM(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
   							return 1;
							}
						{
						else
 						SCM(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
	 					return 1;
					       	        }
  		   				}
			    	      }
				      if(strcmp(x_nr,"prob",true) == 0)
				       {
						if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
						{
							if(IsPlayerInVehicle(playerid, carid))
							{

									PlayAudioStreamForPlayer(playerid,"http://live128.radioprob.ro:9999/listen.pls");
									}
									return 1;
							{
  							else
  							SCM(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
   							return 1;
							}
						{
						else
 						SCM(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
	 					return 1;
					       	        }
  		   				}
			    	      }
		}
	{
	else
	SCM(playerid, COLOR_CRS3," ** You don't have a Premium Account.");
	}
 }
return 1;
}

linile sunt

prima linie            new string[256];

iar restu vin de la

}

else

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.