monster010 Posted June 10, 2009 Report Share Posted June 10, 2009 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 More sharing options...
Guest farse Posted June 11, 2009 Report Share Posted June 11, 2009 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 More sharing options...
monster010 Posted June 11, 2009 Author Report Share Posted June 11, 2009 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 More sharing options...
Guest farse Posted June 11, 2009 Report Share Posted June 11, 2009 dar unde lai pus? in OnPlayerCommandText?Punel la sfarsitul scriptului :| Link to comment Share on other sites More sharing options...
monster010 Posted June 11, 2009 Author Report Share Posted June 11, 2009 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 More sharing options...
-=[Vyorel]=- Posted June 11, 2009 Report Share Posted June 11, 2009 Ai uitat sa pui ;forward closelsdgate();Vezi pe unde mai ai forward si unde nu este ; pui tu. ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez. Link to comment Share on other sites More sharing options...
monster010 Posted June 11, 2009 Author Report Share Posted June 11, 2009 Gata merge , Va mutumesc frumos....sunteti tari Link to comment Share on other sites More sharing options...
Question
monster010
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
Portile sunt manuale dar vreau automatice
[move]Multumesc Anticipat[/move]
Link to comment
Share on other sites
6 answers to this question
Recommended Posts