[Tutorial] Vehicle Ownership With Mysql & SScanf
#23

Ok ive got it working but ive hit a problem..
I'd normally know how to do this but i just cant think of anything atm.
Anyway i dont know how to restrict a car i created to 1 name.
I tried this:
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(strcmp(GetName(playerid), VehicleInfo[vehicleid][Owner], true) == 0)
        {
            return 1;
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
        }
    }
    return 1;
}
But that kicks me out no-matter.
Do anyone know how?
Reply


Messages In This Thread
Vehicle Ownership With Mysql & SScanf & Zcmd [ Updated as of: 20.04.2012 ] - by Cameltoe - 29.10.2010, 13:04
Re: Vehicle Ownership With Mysql & SScanf - by iJumbo - 29.10.2010, 13:05
Re: Vehicle Ownership With Mysql & SScanf - by Cameltoe - 29.10.2010, 13:32
Re: Vehicle Ownership With Mysql & SScanf - by willsuckformoney - 29.10.2010, 17:02
Re: Vehicle Ownership With Mysql & SScanf - by Cameltoe - 29.10.2010, 17:11
Re: Vehicle Ownership With Mysql & SScanf - by willsuckformoney - 29.10.2010, 17:15
Re: Vehicle Ownership With Mysql & SScanf - by Cameltoe - 29.10.2010, 17:18
Re: Vehicle Ownership With Mysql & SScanf - by willsuckformoney - 29.10.2010, 17:20
Re: Vehicle Ownership With Mysql & SScanf - by Cameltoe - 29.10.2010, 18:50
Re: Vehicle Ownership With Mysql & SScanf - by Siim - 02.11.2010, 17:37
Re: Vehicle Ownership With Mysql & SScanf - by Scenario - 02.11.2010, 18:02
Re: Vehicle Ownership With Mysql & SScanf - by Siim - 03.11.2010, 12:46
Re: Vehicle Ownership With Mysql & SScanf - by Scenario - 03.11.2010, 13:12
Re: Vehicle Ownership With Mysql & SScanf - by Siim - 03.11.2010, 13:50
Re: Vehicle Ownership With Mysql & SScanf - by Scenario - 03.11.2010, 14:26
Re: Vehicle Ownership With Mysql & SScanf - by Cameltoe - 03.11.2010, 15:47
Re: Vehicle Ownership With Mysql & SScanf - by Siim - 03.11.2010, 17:52
Re: Vehicle Ownership With Mysql & SScanf - by Scenario - 03.11.2010, 17:54
Re: Vehicle Ownership With Mysql & SScanf - by Siim - 03.11.2010, 19:23
Re: Vehicle Ownership With Mysql & SScanf - by iTorran - 15.11.2010, 14:41
Re: Vehicle Ownership With Mysql & SScanf - by DiddyBop - 16.11.2010, 03:46
Re: Vehicle Ownership With Mysql & SScanf - by Cameltoe - 16.11.2010, 13:03
Re: Vehicle Ownership With Mysql & SScanf - by iTorran - 17.11.2010, 21:17
Re: Vehicle Ownership With Mysql & SScanf - by Cameltoe - 17.11.2010, 21:52
Re: Vehicle Ownership With Mysql & SScanf - by iTorran - 18.11.2010, 10:47
Re: Vehicle Ownership With Mysql & SScanf - by Cameltoe - 18.11.2010, 12:26
Re: Vehicle Ownership With Mysql & SScanf - by iTorran - 18.11.2010, 13:11
Re: Vehicle Ownership With Mysql & SScanf - by Game94 - 27.11.2010, 16:09
Re: Vehicle Ownership With Mysql & SScanf - by SuperS82 - 29.11.2010, 20:46
Re: Vehicle Ownership With Mysql & SScanf - by Rokzlive - 06.12.2010, 20:03
Re: Vehicle Ownership With Mysql & SScanf - by MartinJ1 - 20.04.2012, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)