Yes, using php blocks would be nicer than code so it doesn't take up a ton of space. Also I like the color coding

But anyway, to the matter at hand.
If it works offline, then it could be an issue with clientsiding. If I recall properly, either onwall or onwall2 is strictly clientside or serverside, not sure which. I would suggest doing like a "setplayerprop #c,Checking onwall!;" block of coding where you start your check. Make sure that it is actually getting the proper calls. Next then add checks like setting the chat to something like "Cannot move left!" if you cannot move left etc, make sure that it is getting the calls properly. You should also add such debugging lines when you run into these situations. If you have a message system that works much better than chat. I have a message system that I use where I just do addstring client.messages,New Message; and it will add it. So in that case it would be nice to have it show that you cannot move left, or up, so that if there are multiple messages then it will be visible, allowing more than just having the chat (which only can display 1 real message at a time).