Why doors don't open?
#1

Why doors don't open?
Код:
if (strcmp("/doors", cmdtext, true, 10) == 0)
{
        if(GetPVarInt(playerid, "doors") == 0)
        {
        GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(carid,engine,lights,alarm,false,bonnet,boot,objective);
        SetPVarInt(playerid, "doors", 1);
        }
        else if(GetPVarInt(playerid, "doors") == 1)
        {
        GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
       SetVehicleParamsEx(carid,engine,lights,alarm,true,bonnet,boot,objective);
        SetPVarInt(playerid, "doors", 0);
        }
        return 1;
}
Reply
#2

Try '0' and '1' instead of true and false.
And you need the:

new engine, lights, alarm, doors, bonnet, boot, objective;

Under the first bracket of the command
Reply
#3

pawn Код:
if (strcmp("/doors", cmdtext, true, 10) == 0)
{
        if(GetPVarInt(playerid, "doors") == 0)
        {
        GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(carid,engine,lights,alarm,1,bonnet,boot,objective);
        SetPVarInt(playerid, "doors", 1);
        }
        else if(GetPVarInt(playerid, "doors") == 1)
        {
        GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
       SetVehicleParamsEx(carid,engine,lights,alarm,0,bonnet,boot,objective);
        SetPVarInt(playerid, "doors", 0);
        }
        return 1;
}
Reply
#4

Quote:
Originally Posted by _rAped
Посмотреть сообщение
pawn Код:
if (strcmp("/doors", cmdtext, true, 10) == 0)
{
        if(GetPVarInt(playerid, "doors") == 0)
        {
        GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(carid,engine,lights,alarm,1,bonnet,boot,objective);
        SetPVarInt(playerid, "doors", 1);
        }
        else if(GetPVarInt(playerid, "doors") == 1)
        {
        GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
       SetVehicleParamsEx(carid,engine,lights,alarm,0,bonnet,boot,objective);
        SetPVarInt(playerid, "doors", 0);
        }
        return 1;
}
Don't open
Reply
#5

And how still it is possible to make that doors opened?
Reply
#6

Like I know about the doors function, then they aren't opening, this command Locks/Unlocks doors.
They aren't opening.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)