Jump to content

Question

Posted

Salutare , am intalnit o erroare...dar nu inteleg dece imi da erroare pentru ca eu cred ca am facut bine...

ERROAREA+WARNINGS :

(4773) : warning 225: unreachable code
(4773) : error 029: invalid expression, assumed zero
(4773) : warning 215: expression has no effect
(4773) : error 001: expected token: ";", but found "if"
Linia :
else if(IsPlayerInRangeOfPoint(playerid, 5,1379.8400, 769.4716, 11.7600))
Toate liniile de la comanda :
if(IsPlayerInRangeOfPoint(playerid, 5,1446.4800, 663.3500, 13.2300))
	    {
		    if(AccInfo[playerid][c4] > 0)
			{
	         	GetPlayerPos(playerid, bx[playerid], by[playerid], bz[playerid]);
	         	detonate = CreatePickup(1313, 23, bx[playerid], by[playerid], bz[playerid]);
	         	SetTimer("Blowgate", 10000, false);
	         	GameTextForPlayer(playerid, "~r~bomb~n~~y~planted", 3000, 3);
            	return 1;
			}
			else return SendClientMessage(playerid,red,"You don't have enought C4");
		}
		else return SendClientMessage(playerid,red,"You are not near gate!");
		else if(IsPlayerInRangeOfPoint(playerid, 5,1379.8400, 769.4716, 11.7600))
		{
		    if(AccInfo[playerid][c4] > 0)
			{
	         	GetPlayerPos(playerid, bx[playerid], by[playerid], bz[playerid]);
	         	detonate = CreatePickup(1313, 23, bx[playerid], by[playerid], bz[playerid]);
	         	SetTimer("Blowgate", 10000, false);
	         	GameTextForPlayer(playerid, "~r~bomb~n~~y~planted", 3000, 3);
            	return 1;
			}
			else return SendClientMessage(playerid,red,"You don't have enought C4");
		}
		else return SendClientMessage(playerid,red,"You are not near gate!");

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

4 answers to this question

Recommended Posts

Posted

(4774) : warning 225: unreachable code imi da acuma

EDIT :

Am rezolvat faza asta...dar acuma vreau sa intreb cum sa fac...sa verifice daca este un obiect/pickup langa un alt obiect? ceva de genu... lu IsPlayerInRangeOfPoint...doar ca sa fie...gen IsPickupInRangeOfPoint...

PS: Next tu stii lac e ma refer:D si la ce imi trebuie

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

[pawn]if(IsPlayerInRangeOfPoint(playerid, 5,1446.4800, 663.3500, 13.2300))

{

if(AccInfo[playerid][c4] > 0)

{

GetPlayerPos(playerid, bx[playerid], by[playerid], bz[playerid]);

detonate = CreatePickup(1313, 23, bx[playerid], by[playerid], bz[playerid]);

SetTimer("Blowgate", 10000, false);

GameTextForPlayer(playerid, "~r~bomb~n~~y~planted", 3000, 3);

return 1;

}

else return SendClientMessage(playerid,red,"You don't have enought C4");

}

else if(IsPlayerInRangeOfPoint(playerid, 5,1379.8400, 769.4716, 11.7600))

{

if(AccInfo[playerid][c4] > 0)

{

GetPlayerPos(playerid, bx[playerid], by[playerid], bz[playerid]);

detonate = CreatePickup(1313, 23, bx[playerid], by[playerid], bz[playerid]);

SetTimer("Blowgate", 10000, false);

GameTextForPlayer(playerid, "~r~bomb~n~~y~planted", 3000, 3);

return 1;

}

else return SendClientMessage(playerid,red,"You don't have enought C4");

}

else return SendClientMessage(playerid,red,"You are not near gate!");[/pawn]

Massari e curva mea

Posted

am rezolvat dar am uitat sa spun :) puteti da T/C

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.