Jump to content
Форум МТА — GTA MTA: SA онлайн игра

Recommended Posts

У меня вылезает ошибка: 
Input: 1: попытка сравнить строку с номером 

jmarker = createMarker (-2520.9311253438, -624.95135498047, 132.78466796875 - 1.1 > "cylinder" > 1.5, 255, 0, 0, 170)
blip = createAttachedTo (jmarker, 11)
function enter ()
    triggerClientEvent ("infowindow", getRootElement())
end
addEventHandler ("onMarkerHit", jmarker, enter)
addEvent ("pickup", true)
function create ()
    trash = createPickup (-2513.2861328125, -622.08862304688, 132.73469543457, 3, 1450, 10000, 10000)
    trash1 = createPickup (-2490.0659179688, -610.62829589844, 132.71096801758, 3, 1450, 10000, 10000)
    trash2 = createPickup (-2496.5239257813, -597.04125976563, 132.7109375, 3, 1450, 10000, 10000)
    trash3 = createPickup (-2517.111328125, -597.5733642581, 132.7109375, 3, 1450, 10000, 10000)
end
addEventHandler ("pickup", root, create)

ut:12: attempt to call a nil value (global 'getRootElement')

function oncliententer (plr)
    triggerClientEvent ("get", root, plr)
    pickuptype = getPickupType (source)
    if (pickuptype == 3) then
        pickumodel = getElementModel (source)
        if (pickumodel >= 1450) then
            triggerClientEvent ("pay", root)
            givePlayerMoney (plr, 30)
        end
    end
end
addEventHandler ("onpickupHit", getRootElement (), rend)

input:13: ')' expected near 'resourceRoot'

addEvent("infowindow", true)
screenwidth, screenHeigth = guiGetscreensize()
function wind ()
    infowind = guiCreateWindow(screenwidth - 700, screenHeigth - 500, 200, 229, "Работа мусорщиком", false)
    infotext = guiCreateMemo(15, 20, 165, 150, "Ваша задача собирать пикапы мусора за вознагрождения", false, infowind)
    guiMemoSetReadOnly(infotext, true)
    ShowCursor(true)
    guiSetvisible (infowind, true)
    guiwindowSetSizable(infowind, flase)
    Button_Close = guiCreateButton(10, 174, 90, 45, "Закрыть", false, infowind)
    Button_Start = guiCreateButton(100, 174, 90, 45, "Начать работу", false, infowind)
end
addEventHandler("infowind" resourceRoot, wind)
function noshow ()
    if (source == Button_Close) then
        guiSetvisible (infowind, false)
        showcursor (false)
    end
end
addEventHandler("onclientGUIClick", resourceRoot, noshow)
function start ()
    if (source == Button_Start) then
        triggerServerEvent ("pickup", root)
        guiSetvisible (infowind, false)
        showcursor (false)
    end
end

помогите пожалуйста 

Link to comment
Share on other sites

  • 1 year later...
В 30.10.2018 в 17:27, игровой канал Девколиона сказал:

jmarker = createMarker (-2520.9311253438, -624.95135498047, 132.78466796875 - 1.1 > "cylinder" > 1.5, 255, 0, 0, 170)

jmarker = createMarker (-2520.9311253438, -624.95135498047, 132.78466796875 - 1.1, "cylinder", 1.5, 255, 0, 0, 170)

 

В 30.10.2018 в 17:27, игровой канал Девколиона сказал:

addEventHandler ("onpickupHit", getRootElement (), rend)

 

addEventHandler ("onPickupHit", getRootElement(), rend)

 

В 30.10.2018 в 17:27, игровой канал Девколиона сказал:

addEventHandler("onclientGUIClick", resourceRoot, noshow)

addEventHandler("onClientGUIClick", resourceRoot, noshow)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Similar Content

    • By JeSS_TV
      Не могу синхронизировать систему домов, систему автосалона и систему банков между собой чтобы при покупке авто деньги списывались с банка и чтоб в панели ф3 были места под машину.
×
×
  • Create New...