Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include "string";
- function handler( type, msg )
- {
- if( string_find( msg, "not found" ) )
- sys_print( SGS_WARNING, "fuck this." );
- }
- function handler2( type, msg )
- {
- if( string_find( msg, "not found" ) )
- return SGS_ERROR;
- }
- pcall(function()
- {
- print x; // nothing
- });
- pcall(function()
- {
- print x; // renamed warning
- },
- handler );
- pcall(function()
- {
- print x; // changed type to error
- },
- handler2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement