ArkSeyonet
Chancho
- Joined
- Nov 11, 2008
- Messages
- 201
- Reaction score
- 11
Can anyone tell me the reason why my script won't work? I'm not posting the actual script, because I narrowed it down to something simple.
When I use
The script works perfectly.
But when I use
It doesn't show errors, but it just doesn't do anything. I've double checked that I'm vocation 8. And everything.
Using Shawak's War Server. SQL.
*UPDATE*
The above was solved, due to the excellent help from two users. Now, the last problem I ran into is making action ids work.
So instead of
How should I do it?
When I use
Code:
function onStepIn(cid, item, position, fromPosition)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,'You have been kicked from the enemy zone. You cannot stay in enemy territory for more than seconds.')
end
The script works perfectly.
But when I use
Code:
function onStepIn(cid, item, position, fromPosition)
if getPlayerVocation(cid) == 8 then
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,'You have been kicked from the enemy zone. You cannot stay in enemy territory for more than seconds.')
end
end
It doesn't show errors, but it just doesn't do anything. I've double checked that I'm vocation 8. And everything.
Using Shawak's War Server. SQL.
*UPDATE*
The above was solved, due to the excellent help from two users. Now, the last problem I ran into is making action ids work.
So instead of
Code:
[COLOR="RoyalBlue"]if[/COLOR] action.id == [COLOR="SandyBrown"]1500[/COLOR] [COLOR="RoyalBlue"]then[/COLOR]
How should I do it?
Last edited: