Synergy
New Member
- Joined
- Nov 24, 2011
- Messages
- 334
- Reaction score
- 0
Alright so I'm learning how to script and I got this to work before, but it was really simple then and now I want it to look like this but it's not working.
Whats wrong with this script?
And try to teach me how to fix it.
Errors:
"end" expected near something..
Whats wrong with this script?
And try to teach me how to fix it.
Code:
function onSay(cid, words, param)
if getPlayerLevel(cid) >= 8 and getPlayerVocation(cid) then
doPlayerSetVocation(cid, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Congratulations! You are now a wizard.")
end
else
doPlayerSendCancel(cid, "You're not ready yet.")
else
doPlayerSendCancel(cid, "You already have a vocation.")
return true
end
return false
end
Errors:
"end" expected near something..