Elevator
#1

hi,
im wanted to make a elevator at the lspd.
everytime i get erros but the script got already gates and i copied it and changed it ...
dont work many times...
long time ago i maked it too but now it dont work at me ?
my elevator got like 12 objects is that possible to make it go up same time ...?
or can only one object or something.
Reply
#2

It doesn't seem like you know what you're doing, at all. I would recommend you look into the function "MoveObject". It will do literally what the function reads, move an object. You would be better off making a teleport command or something though, since you can't use an elevator to get in from a garage into a building.
Reply
#3

Put here the codes and maybe i can help you, and wath GM are u using
Reply
#4

why a teleport command ?
and moveobject in my script they do with dynamicobject .... ?

.... ravens roleplay.
and i would make it again but a time ago when it was 0.2 samp i maked a elevator and gates easy ...
Reply
#5

i got now like this :

Код:
	if(!strcmp(cmdtext, "/lspdup", true)) // elevator up
	{
		if(IsAPDMember(playerid) || PlayerInfo[playerid][pAdmin] >= 6 || IsAFreecop(playerid))
		{
	MoveObject(lspde1, 1571.968628, -1636.526367, 28.596808, 269.7592, 4.2972, 274.0564);
	MoveObject(lspde2, 1572.700073, -1636.526978, 29.371974, 179.5180, 0.0000, 269.7592);
	MoveObject(lspde3, 1570.435547, -1636.531982, 28.549574, 90.2408, 0.0000, 269.7592);
	MoveObject(lspde4, 1569.718628, -1636.520386, 29.370650, 179.5180, 0.8594, 268.8998);
	MoveObject(lspde5, 1570.494263, -1636.041260, 28.123169, 179.5180, 90.2408, 180.3774);
	MoveObject(lspde6, 1571.930420, -1637.144653, 29.187997, 180.3774, 89.3814, 178.6585);
	MoveObject(lspde7, 1570.491455, -1636.524048, 30.903868, 90.9960, 358.2811, 271.4781);
	MoveObject(lspde8, 1571.941284, -1636.530884, 30.945877, 270.6186, 3.4377, 273.1970);
	MoveObject(lspde9, 1571.919067, -1637.158813, 30.324759, 179.5180, 90.2408, 178.6585);
	MoveObject(lspde10, 1570.507324, -1636.043945, 30.298540, 179.5180, 90.2408, 180.3774);
	MoveObject(lspde11, 1569.740479, -1636.516479, 30.158154, 179.5180, 0.8594, 268.8998);
	MoveObject(lspde12, 1572.697510, -1636.494873, 30.191472, 179.5180, 0.0000, 269.7592);
		      		SendClientMessage(playerid, COLOR_BLUE,"The elevator is going up, Please Wait!");
		      		GetPlayerName(playerid, sendername, sizeof(sendername));
		      		format(string, sizeof(string), "* %s takes his/her remote control and puts a key.", sendername);
		      		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
My errors :

Код:
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4094) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4123) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4357) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4400) : error 017: undefined symbol "GetVehicleName"
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4400) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4416) : error 004: function "IsASalesVehicle" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4420) : error 004: function "GetVehiclePrice" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4510) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4515) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4520) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4525) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4530) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4539) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6320) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6360) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6379) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6426) : error 004: function "SaveGuns" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6430) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6434) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6438) : error 004: function "UpdatePlayerPosition" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6544) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6545) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6554) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6555) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6587) : error 004: function "RemoveRoadblock" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6643) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6649) : error 004: function "SafeSetPlayerPos" is not implemented
Reply
#6

1) your Missin 2 }'s

2) those errors are caused by the missing }'s & do not relate to this issue
Reply
#7

where i need put them ?
Reply
#8

pawn Код:
if(!strcmp(cmdtext, "/lspdup", true)) // elevator up
    {
        if(IsAPDMember(playerid) || PlayerInfo[playerid][pAdmin] >= 6 || IsAFreecop(playerid))
        {
    MoveObject(lspde1, 1571.968628, -1636.526367, 28.596808, 269.7592, 4.2972, 274.0564);
    MoveObject(lspde2, 1572.700073, -1636.526978, 29.371974, 179.5180, 0.0000, 269.7592);
    MoveObject(lspde3, 1570.435547, -1636.531982, 28.549574, 90.2408, 0.0000, 269.7592);
    MoveObject(lspde4, 1569.718628, -1636.520386, 29.370650, 179.5180, 0.8594, 268.8998);
    MoveObject(lspde5, 1570.494263, -1636.041260, 28.123169, 179.5180, 90.2408, 180.3774);
    MoveObject(lspde6, 1571.930420, -1637.144653, 29.187997, 180.3774, 89.3814, 178.6585);
    MoveObject(lspde7, 1570.491455, -1636.524048, 30.903868, 90.9960, 358.2811, 271.4781);
    MoveObject(lspde8, 1571.941284, -1636.530884, 30.945877, 270.6186, 3.4377, 273.1970);
    MoveObject(lspde9, 1571.919067, -1637.158813, 30.324759, 179.5180, 90.2408, 178.6585);
    MoveObject(lspde10, 1570.507324, -1636.043945, 30.298540, 179.5180, 90.2408, 180.3774);
    MoveObject(lspde11, 1569.740479, -1636.516479, 30.158154, 179.5180, 0.8594, 268.8998);
    MoveObject(lspde12, 1572.697510, -1636.494873, 30.191472, 179.5180, 0.0000, 269.7592);
    SendClientMessage(playerid, COLOR_BLUE,"The elevator is going up, Please Wait!");
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s takes his/her remote control and puts a key.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
return 1;
}
Reply
#9

now i got this ?

Код:
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34253) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34257) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34257) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34258) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34258) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34259) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34259) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34260) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34260) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34261) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34261) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34262) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34262) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34263) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34263) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34264) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34264) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34265) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34265) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34266) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34266) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34267) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34267) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34268) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34268) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(34280) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
no one helps more ?
Reply
#10

If you would have checked the syntax on the "MoveObject" function, you would have noticed your missing the speed in which you want them to move.

pawn Код:
if(!strcmp(cmdtext, "/lspdup", true)) // elevator up
{
    if(IsAPDMember(playerid) || PlayerInfo[playerid][pAdmin] >= 6 || IsAFreecop(playerid))
    {
        MoveObject(lspde1, 1571.968628, -1636.526367, 28.596808, 269.7592, 4.2972, 274.0564, 1.0);
        MoveObject(lspde2, 1572.700073, -1636.526978, 29.371974, 179.5180, 0.0000, 269.7592, 1.0);
        MoveObject(lspde3, 1570.435547, -1636.531982, 28.549574, 90.2408, 0.0000, 269.7592, 1.0);
        MoveObject(lspde4, 1569.718628, -1636.520386, 29.370650, 179.5180, 0.8594, 268.8998, 1.0);
        MoveObject(lspde5, 1570.494263, -1636.041260, 28.123169, 179.5180, 90.2408, 180.3774, 1.0);
        MoveObject(lspde6, 1571.930420, -1637.144653, 29.187997, 180.3774, 89.3814, 178.6585, 1.0);
        MoveObject(lspde7, 1570.491455, -1636.524048, 30.903868, 90.9960, 358.2811, 271.4781, 1.0);
        MoveObject(lspde8, 1571.941284, -1636.530884, 30.945877, 270.6186, 3.4377, 273.1970, 1.0);
        MoveObject(lspde9, 1571.919067, -1637.158813, 30.324759, 179.5180, 90.2408, 178.6585, 1.0);
        MoveObject(lspde10, 1570.507324, -1636.043945, 30.298540, 179.5180, 90.2408, 180.3774, 1.0);
        MoveObject(lspde11, 1569.740479, -1636.516479, 30.158154, 179.5180, 0.8594, 268.8998, 1.0);
        MoveObject(lspde12, 1572.697510, -1636.494873, 30.191472, 179.5180, 0.0000, 269.7592, 1.0);
        SendClientMessage(playerid, COLOR_BLUE,"The elevator is going up, Please Wait!", 1.0);
        GetPlayerName(playerid, sendername, sizeof(sendername), 1.0);
        format(string, sizeof(string), "* %s takes his/her remote control and puts a key.", sendername, 1.0);
        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5, 1.0);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)