Jump to content

[BUG] What is wrong with this?


Recommended Posts

for i=1, 3 do
		if isElementInRange(sourcePlayer, payphones["PosX"..i], payphones["PosY"..i], payphones["PosZ"..i], 5) then
			outputChatBox("There is a payphone near you")
		else
			outputChatBox("There is no pay phone near you")
		end
	end

Error:

Quote

attempt to call global 'isElementInRange' (a nil value)

 

Edited by Dutchman101
Fix topic title for section requirements
Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...