spooker Posted May 27, 2008 Author Share Posted May 27, 2008 ok so, i want to have a sound when i warp but i put```Call PlaySound(index, "warpsound.wav")```There was no sound.. what did i do wrong? yes i put this in the /warpto commandthis is the code to my warp.```If LCase(Mid(TextSay, 1, 7)) = "/warpto" Then If Len(TextSay) > 8 Then TextSay = Mid(TextSay, 8, Len(TextSay) - 7) n = TextSay If n > 0 and n <= m Then If GetPlayerAccess(index) < 1 Then Call PlayerMsg(index, "You need be of a higher access to use this command!", 4) Exit Sub End If 'If Getattribute(GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index)) <> 1 Then Call PlaySound(index, "warpsound.wav") Call SpellAnim(1, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index)) Call PlayerWarp(index, n, GetPlayerX(index), GetPlayerY(index)) Call SpellAnim(1, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index)) Call PlayerMsg(index, "You have been warped to map #" & n, 9) 'Call AddLog(GetPlayerName(index) & " warped to map #" & n & ".", ADMIN_LOG) Else Call PlayerMsg(index, "Invalid map number.", 4) End If End If Exit SubEnd if``` Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now