Whats wrong with this?
#1

I have this code for my private cars. So if someone has lent someone a car they can drive it also..
This is my code:

pawn Код:
if(vehicleid == Torran[0])
        {
            if(strcmp(GetName(playerid), "JoeTorran", true) == 0 || strcmp(Lent[playerid], "Torran0", true) == 0)
            {
                print(" ");
            }
            else
            {
                RemovePlayerFromVehicle(playerid);
            }
        }
But if someone gets in my car. It dosent remove them like they have it lent to them.
Why? OnPlayerConnect i set Lent[playerid] to 0, Anything wrong with that code?
Reply


Messages In This Thread
Whats wrong with this? - by iTorran - 10.11.2010, 18:40
Re: Whats wrong with this? - by Hiddos - 10.11.2010, 18:46
Re: Whats wrong with this? - by iTorran - 10.11.2010, 18:48
Re: Whats wrong with this? - by Hiddos - 10.11.2010, 18:51
Re: Whats wrong with this? - by iTorran - 10.11.2010, 18:59

Forum Jump:


Users browsing this thread: 1 Guest(s)