Jump to content
  • 0

As vrea sa fie automatice


monster010

Question

As vrea ca portile de la LSPD sa se deschida singure cand claxonezi...Ma puteti ajuta va rog?

Iuta-ti aici ce e pus in GM

//================================[ LSPD GATE ]=============================================================
	if(strcmp(cmd, "/barierop", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	{
	SetObjectRot(bariera, 0, 0, 270);
	SendClientMessage(playerid, COLOR_BLUE, "Police Gate is being Opened");
	}
}
	if(strcmp(cmd, "/bariercl", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	{
	SetObjectRot(bariera, 0, 270, 270);
	SendClientMessage(playerid, COLOR_YELLOW, "Police Gate is being Closed");
	}

}
//=========================================================================================================
	if(strcmp(cmd, "/lspdop", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	{
	MoveObject(lspdgate,1588.84, -1637.89, 7.18,2);
	SendClientMessage(playerid, COLOR_BLUE, "Police Gate is being Opened");
	}
	return 1;
}
	if(strcmp(cmd, "/lspdcl", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	{
	MoveObject(lspdgate,1588.84, -1637.89, 13.18,2);
	SendClientMessage(playerid, COLOR_YELLOW, "Police Gate is being Closed");
	}
	return 1;
}

Portile sunt manuale dar vreau automatice

[move]Multumesc Anticipat[/move]

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Guest farse

la OnPLayerKeyStateChange

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_CROUCH )&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetObjectRot(bariera, 0, 0, 270);
SendClientMessage(playerid, COLOR_BLUE, "Police Gate is being Opened");
SetTimer("closelsdgate",2000,0);
}
return 1;
}
forward closelsdgate()
public closelsdgate()
{
SetObjectRot(bariera, 0, 270, 270);
return 1;
}

Link to comment
Share on other sites

Multumesc dar imi da erori Si cand dau sa caut OnPlayerKeyStateChange nu imi gaseste in gamemod

C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1937) : warning 217: loose indentation
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1937) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1937) : error 004: function "OnPlayerKeyStateChange" is not implemented
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1939) : error 017: undefined symbol "newkeys"
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1945) : warning 217: loose indentation
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1947) : warning 225: unreachable code
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1947) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1947) : error 017: undefined symbol "closelsdgate"
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1948) : error 001: expected token: ";", but found "public"
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1948) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1948) : error 017: undefined symbol "closelsdgate"
C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(1948) : fatal error 107: too many error messages on one line

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


9 Errors.

Link to comment
Share on other sites

L-am pus la sfarsit dar acum imi apare decat 1 eroare :

C:\Documents and Settings\Claudiu\Desktop\server sa-mp by punani\[2.0 X]\gamemodes\Mortalii_v2.1.pwn(29294) : error 001: expected token: ";", but found "public"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

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.