Elevator all times errors ..
#1

hi,
can someone help me ...
i did it much times but i get every time same error
what did i forgot here ...

Код:
	if(strcmp(cmd, "/pdel", true)) // elevator lspd
	{
	    if(IsAPDMember(playerid) || IsAFreecop(playerid))
		{
				if(lspde == 1) { SendClientMessage(playerid, COLOR_GREY, "** Elevator is already up."); return 1; }
			{
				MoveDynamicObject(pdel,(983, 1570.812622, -1636.721558, 27.354481, 0.8);
		      	SetTimer("GateClose4", 9000, 0);
				lspde = 1;
		    	SendClientMessage(playerid, COLOR_BLUE,"Elevator is going up now.");
      			format(string, sizeof(string), "* %s takes his/her remote and opens active the elevator", sendername);
		   		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);

		}
		return 1;
	}

i got these errors everytime: ....
Код:
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4084) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4113) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4347) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4390) : error 017: undefined symbol "GetVehicleName"
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4390) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4406) : error 004: function "IsASalesVehicle" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4410) : error 004: function "GetVehiclePrice" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4500) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(4505) : error 004: function "SafeSetPlayerPos" 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(4529) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6310) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6350) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6369) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6416) : error 004: function "SaveGuns" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6420) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6424) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6428) : error 004: function "UpdatePlayerPosition" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6534) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6535) : error 004: function "SafeSetPlayerInterior" 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(6577) : error 004: function "RemoveRoadblock" is not implemented
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6611) : error 001: expected token: ",", but found ";"
C:\Documents and Settings\Eigenaar\Mijn documenten\Gta Server\gamemodes\larp.pwn(6641) : error 004: function "SafeSetPlayerPos" is not implemented
expected token: ",", but found ";" ( fixed this one already )
Reply
#2

pawn Код:
if(strcmp(cmd, "/pdel", true)) // elevator lspd
    {
        if(IsAPDMember(playerid) || IsAFreecop(playerid))
        {
                if(lspde == 1) { SendClientMessage(playerid, COLOR_GREY, "** Elevator is already up."); return 1; }
            {
                MoveDynamicObject(pdel,(983, 1570.812622, -1636.721558, 27.354481, 0.8);
                SetTimer("GateClose4", 9000, 0);
                lspde = 1;
                SendClientMessage(playerid, COLOR_BLUE,"Elevator is going up now.");
                format(string, sizeof(string), "* %s takes his/her remote and opens active the elevator", sendername);
                ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);

                   }
            }
        return 1;
    }
Reply
#3

pawn Код:
if(strcmp(cmd, "/pdel", true)) // elevator lspd
{
    if(IsAPDMember(playerid) || IsAFreecop(playerid))
    {
        if(lspde == 1) { SendClientMessage(playerid, COLOR_GREY, "** Elevator is already up."); return 1; }
        {
            MoveDynamicObject(pdel,(983, 1570.812622, -1636.721558, 27.354481, 0.8);
            SetTimer("GateClose4", 9000, 0);
            lspde = 1;
            SendClientMessage(playerid, COLOR_BLUE,"Elevator is going up now.");
            format(string, sizeof(string), "* %s takes his/her remote and opens active the elevator", sendername);
            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
        }
    }
    return 1;
}
try this u forgoted to put ( } )
Reply
#4

what lines are which?
Reply
#5

You are also using strcmp wrong. You are checking if the command entered is not equivalent to "/pdel".

pawn Код:
if (!strcmp(cmd, "/pdel", true)) // elevator lspd
{
    if (IsAPDMember(playerid) || IsAFreecop(playerid))
    {
        if (lspde == 1) return SendClientMessage(playerid, COLOR_GREY, "** Elevator is already up.");
        MoveDynamicObject(pdel, (983, 1570.812622, -1636.721558, 27.354481, 0.8);
        SetTimer("GateClose4", 9000, 0);
        lspde = 1;
        SendClientMessage(playerid, COLOR_BLUE, "Elevator is going up now.");
        format(string, sizeof (string), "* %s takes his/her remote and opens active the elevator", sendername);
        ProxDetector(30.0, playerid, string, COLOR_CHAT1, COLOR_CHAT2, COLOR_CHAT3, COLOR_CHAT4, COLOR_CHAT5);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)