• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[HELP] This script is suppost to send a massage but doesn't

Nirer

New Member
Joined
Aug 23, 2007
Messages
91
Reaction score
0
Location
Israel, How Unfortunate
First off, this is my first script so hopefully you'll be able to help me, thanks..

---------------------------

The script is supposed to do the following:
When a player gets out of a certain building, it will send the proper massage...
The positions are mentioned, when he lands/steps on one of those positions, the massage should appear, although the massage doesn't appear, what is wrong?

------------------------


This is Aware.lua:
PHP:
function onUse(cid, item, frompos ,item2, topos)
i=0
repeat 
 position = {x=94+i, y=122, z=7}
  if(getPlayerPosition(cid)==position) then
   doPlayerSendTextMessage(cid,22,"Hi.")
   	end
	i=i+1
	until i>3
end

This is what's inside the actions.xml:
PHP:
<!-- Other -->
	<action script="other/Aware.lua"/>
 
Back
Top