Vehicle System HELP
#2

pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
       if(newstate == PLAYER_STATE_DRIVER)
       {
            new Name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
            if(!strcmp(DynamicCars[GetPlayerVehicleID(playerid)][Owner], Name, false)) { }
            else RemovePlayerFromVehicle(playerid);
       }
       return 1;
}
I don't know the dynamic car-system, so I don't know if this will work, but:
You should use strcmp to check if two strings are equal or not
=D
Reply


Messages In This Thread
Vehicle System HELP - by Fab10 - 20.07.2010, 14:26
Re: Vehicle System HELP - by Last_Stand_Guardian - 20.07.2010, 14:47
Re: Vehicle System HELP - by Fab10 - 20.07.2010, 15:15
Re: Vehicle System HELP - by Fab10 - 20.07.2010, 15:27
Re: Vehicle System HELP - by Last_Stand_Guardian - 20.07.2010, 15:28
Re: Vehicle System HELP - by Fab10 - 20.07.2010, 16:10
Re: Vehicle System HELP - by Fab10 - 20.07.2010, 16:11
Re: Vehicle System HELP - by DJDhan - 20.07.2010, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)