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

Whats Wrong???


Recommended Posts

**Okay so I wanted to test someting:**
_**Sub UseItem(Index, ItemNum, ItemType, SlotNum)
If ItemNum = 2 Then
Call TakeItem(Index, 2, 1)
Call PlayerMsg(Index, "Does It Work?", 4)
End If
End Sub**_
**However there is a problem:**
**When I use item no.2 … nothing happens only that my screen blinks. Im not sure why.**
**This is where I placed the sub:**
_' Tests scripts up to the location of Sub TestMain(Index). 
**Sub UseItem(Index, ItemNum, ItemType, SlotNum)
If ItemNum = 2 Then
Call TakeItem(Index, 2, 1)
Call PlayerMsg(Index, "Does It Work?", 4)
End If
End Sub** ' Leave this sub at the bottom to test the entire script file.
Sub TestMain(Index)
Call PlayerMsg(Index, "Scripts are working properly.", BRIGHTGREEN)
End Sub_
**Please help!  :azn:**
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...