Problem with locking vehicle - Mysql
#5

I also did this, under OnPlayerEnterVehicle:

pawn Код:
for(new i; i < MAX_VEHICLES; i++)
        {
            if(VInfo[i][ownedvehicle] == vehicleid)
            {
                if(i == IgracevAuto1[playerid] || VInfo[i][Locked] == 0)
                {
                    return 1;
                }
                else
                {
                    new str[128];
                    GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
                    SetPlayerPos(playerid, Poz[0], Poz[1]+2, Poz[2]+0.5);
                    format(str, sizeof(str), "* Vehicle is locked, owner of this vehicle is", VInfo[i][Owner]);
                    SCM(playerid, YELLOW, str);
                    return 1;
                }
            }
        }
Reply


Messages In This Thread
Problem with locking vehicle - Mysql - by ShoortyFl - 05.07.2015, 22:20
Re: Problem with locking vehicle - Mysql - by ShoortyFl - 06.07.2015, 02:10
Re: Problem with locking vehicle - Mysql - by Diovis - 06.07.2015, 03:59
Re: Problem with locking vehicle - Mysql - by dusk - 06.07.2015, 08:02
Re: Problem with locking vehicle - Mysql - by ShoortyFl - 06.07.2015, 12:14
Re: Problem with locking vehicle - Mysql - by ShoortyFl - 07.07.2015, 00:45
Re: Problem with locking vehicle - Mysql - by Jefff - 07.07.2015, 00:52
Re: Problem with locking vehicle - Mysql - by ShoortyFl - 07.07.2015, 01:13
Re: Problem with locking vehicle - Mysql - by Jefff - 07.07.2015, 01:22
Re: Problem with locking vehicle - Mysql - by ShoortyFl - 07.07.2015, 01:25

Forum Jump:


Users browsing this thread: 1 Guest(s)