ايهاب Posted July 24, 2015 Share Posted July 24, 2015 (edited) hey all need help iem programar lua level 0 "noop" i need fix this spawnPlayer function joinHandler() local x = 1270.5029296875 local y = 1340.46875 local z = 13.340074539185 spawnPlayer( source, x, y, z ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("ehab", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) meta proplem : the script not start what this "WARNING: Not loading resource 'script.lua' as it contains illegal characters help me proplem fix meta or ????? what Edited July 24, 2015 by Guest Link to comment
Perfect Posted July 24, 2015 Share Posted July 24, 2015 Try changing your resource name to something simpler like "simplescript" if you didn't already. Link to comment
ايهاب Posted July 25, 2015 Author Share Posted July 25, 2015 Postby EGYPT _ ايهاب on Fri Jul 24, 2015 6:09 pm ERROR: Couldn't find script server/admin_acl.lua for resource admin2 Loading of resource 'admin2' failed ERROR: Couldn't find meta.xml file for resource 'alua' Loading of resource 'alua' failed ERROR: Couldn't find meta.xml file for resource 'ehab' Loading of resource 'ehab' failed ERROR: Couldn't find script scriptc.lua for resource meta Loading of resource 'meta' failed جربت ارفع الاسكريبت بى اسمين مختلفين بردوة نفس الكلام ضفت فى الميتا admin_acl بردو ERROR: Couldn't find script server/admin_acl.lua for resource admin2 الرسالة دى اول شى جبهالى حد Link to comment
TAPL Posted July 25, 2015 Share Posted July 25, 2015 Looks like you have put the lua file and the meta directly into the folder 'resources', and i wonder if you have ever read the 'Scripting Introduction' in the wiki? https://wiki.multitheftauto.com/wiki/Scripting_Introduction#Creating_a_working_script Link to comment
Simple0x47 Posted July 25, 2015 Share Posted July 25, 2015 Put them into a folder with the name of the resource example: resources/yourscriptname/yourscriptfiles. And if it still don't working try to pass them to UTF-8. 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