How to combine a map trigger brush with a gamemode?

I’m attempting to allow the map to interact with the gamemode by placing a trigger brush in the map that is tied to an entity as “trigger_playermovement” with the name “checkpoint_00”.
Visual Reference:
Now in the gamemode’s code I added this bit to interact with the trigger brush:


function ENT:Touch("checkpoint_00") 

However as soon as I launch the map I get this error:

[ERROR] gamemodes/skillrace/gamemode/init.lua:19: <name> or '...' expected near '"checkpoint_00"'
  1. unknown - gamemodes/skillrace/gamemode/init.lua:0

I see it asks for a name, but I thought “checkpoint_00” would be the correct name.
Could somebody explain to me what I’m doing wrong here?

Thanks in advance! <3

I hvae no idea what you were trying to do, but:
a) You should read wiki
b) Here’s working code

function ENT:Touch( ent )
    if ( ent:IsPlayer() ) then ent:ChatPrint("TRIGGER!") end

[editline]28th April 2013[/editline]

By the way, you should put this into your trigger_playermovement entity, not gamemode.