Yurigarga Posted July 26, 2018 Share Posted July 26, 2018 Error 1-292. line ====== Bad argument @ 'engineApplyShaderToWorldTexture' [Expected material at argument 1 ,got nill]2-293.line ======Bad argument @ 'dxSetShaderValue' [Expected material at argumenr 1.gotnill] function Nisangah3Aktif() engineApplyShaderToWorldTexture(shader, "siteM16") --292 dxSetShaderValue(shader, "gTexture", dxCreateTexture("dosyalar/resim/nisangah3.png"))--293 _outputChatBox ( "#00ff00Nişangah Değiştirildi", 255, 0, 0, true ) local file = xmlLoadFile("ayarlar.xml") if file then local ayar7child = xmlFindChild ( file, "nisangah", 0 ) xmlNodeSetValue (ayar7child, "3") end xmlSaveFile(file) end What should ı do ? Link to comment
Moderators IIYAMA Posted July 26, 2018 Moderators Share Posted July 26, 2018 The shader reference isn't saved in to the variable `shader`. So create a shader and save it in to the shader variable before using it. https://wiki.multitheftauto.com/wiki/Element/Shader https://wiki.multitheftauto.com/wiki/DxCreateShader Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now