Jump to content
  • 0

Problema compile warning/error


iReal.ro

Question

//-----------------------------iReal Creaton Radio Vehicle Star Gaming--------------------

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;
}
//-------------------------------END iREAL STAR GAMING RADIO---------------------------
Erorile sunt
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34903) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34923) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34924) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34928) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34929) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34945) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34946) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34950) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34951) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34967) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34968) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34972) : warning 225: unreachable code
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34973) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34903) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34981) : error 029: invalid expression, assumed zero

Multe vin de la

{

else

Ajutatima va rog frumos , multumesc !

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

[pawn]

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

{

SendClientMessage(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");

return 1;

}

}

else

{

SendClientMessage(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

{

SendClientMessage(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");

return 1;

}

}

else

{

SendClientMessage(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

{

SendClientMessage(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");

return 1;

}

}

else

{

SendClientMessage(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");

return 1;

}

}

}

}

else

{

SendClientMessage(playerid, COLOR_CRS3," ** You don't have a Premium Account.");

}

return 1;

}[/pawn]

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

imi da multe dastea

C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(2785) : warning 219: local variable "query" shadows a variable at a preceding level
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3011) : error 004: function "GivePlayerCash" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3040) : error 004: function "GivePlayerCash" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3091) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3092) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3119) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3755) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3767) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3780) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3793) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3805) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3809) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3821) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3825) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3829) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3833) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3837) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3841) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3845) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3849) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3861) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3865) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3869) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3873) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3877) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3889) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3901) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

Link to comment
Share on other sites

	if(strcmp(cmd,"/radiocar",true)==0)
	{
		if(IsPlayerConnected(playerid))
		{
			new carid = GetPlayerVehicleID(playerid);
			if(IsPlayerInVehicle(playerid, carid))
			{
				if(PlayerInfo[playerid][pDonateRank] > 1)
				{
					new m;
					m = GetVehicleModel(carid);
					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)
					{
						new x_nr[256];
						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)
						{
							PlayAudioStreamForPlayer(playerid,"http://stream.profm.ro:8012/profm.mp3");
							return 1;
						}
						if(strcmp(x_nr,"clubstation",true) == 0)
						{
							PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls");
							return 1;
						}
						if(strcmp(x_nr,"clubstation",true) == 0)
						{
							PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls");
							return 1;
						}
					}
					else
					{
						SendClientMessage(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
						return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_CRS3, "** You don't have a Premium Account.");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
				return 1;
			}
		}

	return 1;
	}

Uite l-am facut mai simplu si am reusit sal fac sa numai dea erori !

Am o intrebare daca eu conduc masina si am cont premium ! da?

Si am pasageri !si vreau sa dau /radiocar profm

Cum pot face sa auda si ei ?!

Link to comment
Share on other sites

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.