- 72
- 7
- Версия MoonLoader
- .026-beta
Подскажите почему вместо указанного ID выводится нулевой ID
lua:
function gh(arg)
local result, target = getCharPlayerIsTargeting(playerHandle)
if result then result, playerid = sampGetPlayerIdByCharHandle(target) end
name = sampGetPlayerNickname(playerid)
sampSendChat('gethere '..name..'')
sampAddChatMessage('Вы телепортировалли '..name..'. ID '..id..'')
end