Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Why isnt this working?


Gwen
 Share

Recommended Posts

Sub ScriptedTile(Index, Script)
  Select Case Script
    Case 0
      Call PlayerMsg(Index, "This scripted tile has no apparent use.", WHITE)
      Call Test()
      Exit Sub
    Case Else
      Call PlayerMsg(Index, "No tile script found. Please contact an admin to solve this problem.", WHITE)
      Exit Sub
    End Select
End Sub

Sub Test()
  Call PlayerMsg(Index, "test", WHITE)
End Sub

I know its been a while since i scripted, but I dont think I completely forgot how to make subs.

It will do the this tile has no use message, but not the test message in the test sub
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...