Post code, not pictures of code. It helps speed up the testing process as people can copy/paste instead of having to try to read a screenshot. Please see Wiki - how to post code on this forum. You can edit your post by clicking on the pencil icon in the bottom right.
Moving on, you have this marked as perspective. system.gui.warningBox
is vision only. (I personally recommend rolling your own info popup in vision as well)