At the top of libraries, such as this one, there's always documentation on everything you need to know.
Don't know what a "library" means or what to do with it.
//**************************************************************************************************
//*
//* SimError
//*
//* Mimic an interface error message
//* call SimError(ForPlayer, msg)
//* ForPlayer : The player to show the error
//* msg : The error
//*
//* To implement this function, copy this trigger and paste it in your map.
//*
Unless of course you are actually reading the library from wc3c's scripts section, then just
//*
paste the contents into some custom text trigger in your map.
//*
//**************************************************************************************************
Even how i'm gonna use this call Display.... function..
//**************************************************************************************************
//*
//* SimError
//*
//* Mimic an interface error message
//*
call SimError(ForPlayer, msg)
//* ForPlayer : The player to show the error
//* msg : The error
//*
//* To implement this function, copy this trigger and paste it in your map.
//* Unless of course you are actually reading the library from wc3c's scripts section, then just
//* paste the contents into some custom text trigger in your map.
//*
//**************************************************************************************************
To use a line of JASS in GUI, you use the action Custom Script (it's at the top, near Set Variable), then you type your line of JASS in there.
So for example, you would put
call SimError( GetOwningPlayer( GetTriggerUnit() ), "Cannot target naked people.")
The part you may need help with is, getting the right player. In that example, I showed you how to get the "Owner of ( Triggering Unit ) ".