20.07.2010, 14:47
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;
}
You should use strcmp to check if two strings are equal or not
=D