Unless it's a written warning logged in a database there's no way to track who has received a warning. Everyone will claim they didn't know even if it's the tenth time they have been stopped by the police.
Permanent ink stamps, just like you get to enter a nightclub. If the stamp is there, you've already been warned.
(Easier on the tourists than a tattoo!)