How to get char coordinates

ARMOR

Я будто попал в другое измерение
Модератор
5,036
7,152
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand("GetCord", function() local pX, pY, pZ = getCharCoordinates(PLAYER_PED) sampAddChatMessage(pX..pY..pZ, -1) end)
    while true do
    wait(0)
    end
end
try
Пробелы между коорлинатами поставить надо было
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand("GetCord", function() local pX, pY, pZ = getCharCoordinates(PLAYER_PED) sampAddChatMessage("X:"pX.. " Y:" ..pY.. " Z:" .. pZ, -1) end)
    while true do
    wait(0)
    end
end
 

P3rsik

Активный
Автор темы
213
32
Пробелы между коорлинатами поставить надо было
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand("GetCord", function() local pX, pY, pZ = getCharCoordinates(PLAYER_PED) sampAddChatMessage("X:"pX.. " Y:" ..pY.. " Z:" .. pZ, -1) end)
    while true do
    wait(0)
    end
end
lua:1123: ')' expected near 'pX'
 

манку хлебал

Потрачен
302
122
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.