DarkLink Posted August 3, 2009 Posted August 3, 2009 yo guys I am still learning how to handle things, but well I am in a good way I think just dont know how to make this working: http://pastebin.com/m426e65f4 Multiple markers at same function I cant do it. What should I change ? Thanks ! Borderpatrol Project Gamemode - Under Development (80%)
eXo|Flobu Posted August 3, 2009 Posted August 3, 2009 i dont know if the typestring of the markes are case sensitiv but this can be solve the problem the first ones are correct but the others have capitals in it "cylinder" "Cylinder" mfg flobu Sorry for my bad english!!!
DarkLink Posted August 3, 2009 Author Posted August 3, 2009 ye omg was that thanks very much^^ Borderpatrol Project Gamemode - Under Development (80%)
eAi Posted August 3, 2009 Posted August 3, 2009 You should avoid specifying elements in scripts - use map files instead.
DarkLink Posted August 4, 2009 Author Posted August 4, 2009 Thanks for ur suggestion eAi, but I dont know yet how to manage elements between map files and script files, how to call them and such. But should I ? It improves game smooth or what kind? Borderpatrol Project Gamemode - Under Development (80%)
robhol Posted August 4, 2009 Posted August 4, 2009 It doesn't really, as far as I know. Personally, I prefer declaring my markers in the script. That way if I need to change that script, it's all in one file. Map files are technically the "correct procedure," though, I guess. Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
DarkLink Posted August 4, 2009 Author Posted August 4, 2009 Hmm I see, thanks for ur reply. Need to learn how to handle it by map files Borderpatrol Project Gamemode - Under Development (80%)
eAi Posted August 7, 2009 Posted August 7, 2009 If you use map files, people can write maps for your gamemodes using the editor, you can have elements specified in multiple resources. Making scripters modify your resource asks for errors, it also means that it has to be downloaded repeatedly if the same resource is used on more than one server. Use getElementsByType("mySpecialMarker"), iterate over the list returned and then create markers based on them, or something similar instead.
DarkLink Posted August 8, 2009 Author Posted August 8, 2009 Thanks eAi Borderpatrol Project Gamemode - Under Development (80%)
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