10.11.2010, 18:40
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:
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?
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);
}
}
Why? OnPlayerConnect i set Lent[playerid] to 0, Anything wrong with that code?