I'm trying to get the fade to black script to work, but I'm getting two errors: conflict with function definition and error in rule THEN-part.

FadeToBlack((Character)_character,(REAL)_Seconds,(INTEGER)_ToBlack)

IF
GlobalEventSet("CaughtStealing")
THEN
CharacterTeleportPartyToTrigger(TRIGGER_Prison_P1,"");
CharacterTeleportToTrigger(CHARACTER_Guard, TRIGGER_Prison_Guard,0,"");
FadeToBlack(CHARACTER_Player1,500,1);