Problem with making moveable gates
#1

Hey guys,
I've a problem, when i try to make moveable gates i get these errors:


pawn Код:
C:\Users\jw\Desktop\larp.pwn(3491) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\jw\Desktop\larp.pwn(3520) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\jw\Desktop\larp.pwn(3866) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Users\jw\Desktop\larp.pwn(3909) : error 017: undefined symbol "GetVehicleName"
C:\Users\jw\Desktop\larp.pwn(3909) : warning 202: number of arguments does not match definition
C:\Users\jw\Desktop\larp.pwn(3925) : error 004: function "IsASalesVehicle" is not implemented
C:\Users\jw\Desktop\larp.pwn(3929) : error 004: function "GetVehiclePrice" is not implemented
C:\Users\jw\Desktop\larp.pwn(4024) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\jw\Desktop\larp.pwn(4029) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\jw\Desktop\larp.pwn(4034) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\jw\Desktop\larp.pwn(4039) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\jw\Desktop\larp.pwn(4044) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\jw\Desktop\larp.pwn(5677) : error 004: function "ClearChatbox" is not implemented
C:\Users\jw\Desktop\larp.pwn(5744) : error 004: function "ClearChatbox" is not implemented
C:\Users\jw\Desktop\larp.pwn(6263) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\jw\Desktop\larp.pwn(6303) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\jw\Desktop\larp.pwn(6332) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\jw\Desktop\larp.pwn(6379) : error 004: function "SaveGuns" is not implemented
C:\Users\jw\Desktop\larp.pwn(6383) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\jw\Desktop\larp.pwn(6387) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\jw\Desktop\larp.pwn(6391) : error 004: function "UpdatePlayerPosition" is not implemented
C:\Users\jw\Desktop\larp.pwn(6497) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\jw\Desktop\larp.pwn(6498) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Users\jw\Desktop\larp.pwn(6507) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\jw\Desktop\larp.pwn(6508) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Users\jw\Desktop\larp.pwn(6540) : error 004: function "RemoveRoadblock" is not implemented
C:\Users\jw\Desktop\larp.pwn(6597) : error 004: function "SafeSetPlayerPos" is not implemented

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


26 Errors.

Can someone plz tell me what to do, because i don't know what's wrong.

Thanks in advance
Reply
#2

Hey that is not a problem on moving gates our moving gates problem worked out it is other problem!
Reply
#3

Ow yeah im sorry it's not the moving gate, it's just when i enter this:



pawn Код:
if (strcmp( "/opengate", cmdtext, true) == 0) {
        else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
                {
                        if (IsPlayerInRangeOfPoint(playerid, 7,88.7840,1920.2301,17.8962))
                        {
                        if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
                        MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
                        SetTimer("GateClose2", 7000, 0);
                        SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 1 is opened and will close in 7 seconds.");
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #1.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        armyg = 1;
                        }
                        else if (IsPlayerInRangeOfPoint(playerid, 7,109.6989,1920.6976,18.6153))
                        {
                        if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
                        MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
                        SetTimer("GateClose2", 7000, 0);
                        SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 2 is opened and will close in 7 seconds.");
                        format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #2.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        armyg2 = 1;
                        }
                return 1;
                }
It gives me errors
Reply
#4

These lines are the errors
pawn Код:
SafeGivePlayerMoney(i, value);
SafeGivePlayerMoney(i, value);
SafeSetPlayerInterior(i,GetPlayerInterior(targetid));
GetVehicleName(vehicleid, vehicle, sizeof(vehicle));
else if(IsASalesVehicle(vehicleid))
format(string,sizeof(string),"Type /v buy to buy this car for $%d",GetVehiclePrice(vehicleid));
else {  SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Only Higher Ranked Law Enforcement Units May use This!!"); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); SafeSetPlayerPos(playerid, X,Y,Z); }
else {  SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Only Higher Ranked Law Enforcement Units May use This!!"); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); SafeSetPlayerPos(playerid, X,Y,Z); }
The rest are the same line as the first ones
Reply
#5

Quote:
Originally Posted by jw_peeters
Посмотреть сообщение
Ow yeah im sorry it's not the moving gate, it's just when i enter this:



pawn Код:
if (strcmp( "/opengate", cmdtext, true) == 0) {
        else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
                {
                        if (IsPlayerInRangeOfPoint(playerid, 7,88.7840,1920.2301,17.8962))
                        {
                        if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
                        MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
                        SetTimer("GateClose2", 7000, 0);
                        SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 1 is opened and will close in 7 seconds.");
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #1.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        armyg = 1;
                        }
                        else if (IsPlayerInRangeOfPoint(playerid, 7,109.6989,1920.6976,18.6153))
                        {
                        if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
                        MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
                        SetTimer("GateClose2", 7000, 0);
                        SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 2 is opened and will close in 7 seconds.");
                        format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #2.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        armyg2 = 1;
                        }
                return 1;
                }
It gives me errors
the errors are not for the 'gatemoving', i think you missed a ' } ' somewhere in your script.
Reply
#6

i know they're not for the gate but i really don't have a clue of what i did wrong
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)