Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: position.lua #1852

Closed
wants to merge 2 commits into from
Closed

fix: position.lua #1852

wants to merge 2 commits into from

Conversation

beats-dh
Copy link
Collaborator

No description provided.

if x and y and z then
player:teleportTo(Position(x, y, z))
else
player:sendTextMessage(MESSAGE_STATUS, "Invalid coordinates. Please enter valid x, y, z values.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error: Invalid coordinates. Please enter a valid x, y, z coordinates.

" .. playerPosition.x .. ", " .. playerPosition.y .. ", " .. playerPosition.z .. ".")
player:sendTextMessage(MESSAGE_STATUS, "Your current position is: " .. playerPosition.x .. ", " .. playerPosition.y .. ", " .. playerPosition.z .. ".")
else
player:sendTextMessage(MESSAGE_STATUS, "Invalid format. Please enter coordinates as x, y, z.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error: Invalid coordinates. Please enter a valid x, y, z coordinates.

@dudantas
Copy link
Member

Fixes in: #1912

@dudantas dudantas closed this Nov 25, 2023
@dudantas dudantas deleted the fix-position.lua branch November 25, 2023 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error [data/scripts/talkactions/gm/position.lua:8: attempt to call a nil value]
4 participants