Jump to content
  • 0

Cateva erori la porti !


George

Question

salut am intampinat niste erori si nu pot sa le dau de capat!

Erorile:

D:\;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(1537) : error 010: invalid function or declaration
D:\;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(1539) : error 010: invalid function or declaration
D:\;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(1545) : error 010: invalid function or declaration
D:\;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;(1550) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Liniile !
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys==KEY_FIRE)
{
if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)//Tow Car Company
{
if (IsPlayerInRangeOfPoint(playerid,5.0,-489.3364,-560.0742,25.5234) || IsPlayerInRangeOfPoint(playerid,5.0,-489.6522,-566.2176,24.3402))
{
SetTimer("inchiderepoartatow", 6000, 0);
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
MoveObject(poartatow1,-499.9010925293, -563.05291748047, 26.059617996216, 0.97);
MoveObject(poartatow2,-479.21746826172, -562.96221923828, 26.073129653931, 0.97);
SendClientMessage(playerid, COLOR_GREY,"* Poarta se va inchide in 6 secunde! Va uram o zi placuta.");
}
}
return 1;
}
return 1;
}

if ((newkeys==KEY_CROUCH )&&(IsPlayerInCopCar(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
if (PlayerToPoint(15, playerid,1541.8696,-1628.0836,13.3828))
{
SetObjectRot(bariera, 0, 0, 270);
SetTimer("closelsdgate",2000,0);
}
}
if (PlayerToPoint(15, playerid,1588.1678,-1633.8999,13.3828) || PlayerToPoint(15, playerid,1589.0842,-1641.1907,13.0884))
{
MoveObject(lspdgate,1588.84, -1637.89, 7.18,2);
SetTimer("closelsdgate",2000,0);
}
return 0;
}

Ma chinui de ceva timp si nu pot sa imi dau seama ce am gresit la functie !

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Daca identitai si tu, asa:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (newkeys==KEY_FIRE)
	{
		if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)//Tow Car Company
		{
			if (IsPlayerInRangeOfPoint(playerid,5.0,-489.3364,-560.0742,25.5234) || IsPlayerInRangeOfPoint(playerid,5.0,-489.6522,-566.2176,24.3402))
			{
				SetTimer("inchiderepoartatow", 6000, 0);
				PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
				MoveObject(poartatow1,-499.9010925293, -563.05291748047, 26.059617996216, 0.97);
				MoveObject(poartatow2,-479.21746826172, -562.96221923828, 26.073129653931, 0.97);
				SendClientMessage(playerid, COLOR_GREY,"* Poarta se va inchide in 6 secunde! Va uram o zi placuta.");
			}
		}
		return 1;
		}
		return 1;
	}

	if ((newkeys==KEY_CROUCH )&&(IsPlayerInCopCar(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
	{
		if (PlayerToPoint(15, playerid,1541.8696,-1628.0836,13.3828))
		{
			SetObjectRot(bariera, 0, 0, 270);
			SetTimer("closelsdgate",2000,0);
		}
	}
	if (PlayerToPoint(15, playerid,1588.1678,-1633.8999,13.3828) || PlayerToPoint(15, playerid,1589.0842,-1641.1907,13.0884))
	{
		MoveObject(lspdgate,1588.84, -1637.89, 7.18,2);
		SetTimer("closelsdgate",2000,0);
	}
	return 0;
}
iti dadeai seama ca ai pus 2
}
return 1;
Asa e corect:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (newkeys==KEY_FIRE)
	{
		if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)//Tow Car Company
		{
			if (IsPlayerInRangeOfPoint(playerid,5.0,-489.3364,-560.0742,25.5234) || IsPlayerInRangeOfPoint(playerid,5.0,-489.6522,-566.2176,24.3402))
			{
				SetTimer("inchiderepoartatow", 6000, 0);
				PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
				MoveObject(poartatow1,-499.9010925293, -563.05291748047, 26.059617996216, 0.97);
				MoveObject(poartatow2,-479.21746826172, -562.96221923828, 26.073129653931, 0.97);
				SendClientMessage(playerid, COLOR_GREY,"* Poarta se va inchide in 6 secunde! Va uram o zi placuta.");
			}
		}
		return 1;
	}

	if ((newkeys==KEY_CROUCH )&&(IsPlayerInCopCar(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
	{
		if (PlayerToPoint(15, playerid,1541.8696,-1628.0836,13.3828))
		{
			SetObjectRot(bariera, 0, 0, 270);
			SetTimer("closelsdgate",2000,0);
		}
	}
	if (PlayerToPoint(15, playerid,1588.1678,-1633.8999,13.3828) || PlayerToPoint(15, playerid,1589.0842,-1641.1907,13.0884))
	{
		MoveObject(lspdgate,1588.84, -1637.89, 7.18,2);
		SetTimer("closelsdgate",2000,0);
	}
	return 0;
}

Link to comment
Share on other sites

TheBoss" post="50620" timestamp="1295287983"]

Nu inteleg rostu la PlayPlayerSound....pune o muzica din gta san andreeas din acelea ...de la radio adik cand deschizi poarta porneste muzica sau cum=))

Chiar esti da Boss da Prost.

PlayerPlaySound /= PlayerPlayMusic(Nu exista asa ceva)

Functia aia da play la un sunet din San Andreas. Nu neaparat muzica.

Link to comment
Share on other sites

Chiar esti da Boss da Prost.

PlayerPlaySound /= PlayerPlayMusic(Nu exista asa ceva)

Functia aia da play la un sunet din San Andreas. Nu neaparat muzica.

sI TRB SA MA FACI prost?

Nam stiut si eu presupun ca nici tu nu stiai mai demult..

cand erai la inceput nu toti sunt scripteri..

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

TheBoss" post="50628" timestamp="1295289005"]

sI TRB SA MA FACI prost?

Nam stiut si eu presupun ca nici tu nu stiai mai demult..

cand erai la inceput nu toti sunt scripteri..

Asa era melodia boratiilor aia de manelari.

Si nu suport astia cu nume care contine Boss best Bo$$ si toate cocalariile.

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.