DarkLink Posted August 3, 2009 Share 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 ! Link to comment
eXo|Flobu Posted August 3, 2009 Share 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 Link to comment
DarkLink Posted August 3, 2009 Author Share Posted August 3, 2009 ye omg was that thanks very much^^ Link to comment
eAi Posted August 3, 2009 Share Posted August 3, 2009 You should avoid specifying elements in scripts - use map files instead. Link to comment
DarkLink Posted August 4, 2009 Author Share 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? Link to comment
robhol Posted August 4, 2009 Share 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. Link to comment
DarkLink Posted August 4, 2009 Author Share Posted August 4, 2009 Hmm I see, thanks for ur reply. Need to learn how to handle it by map files Link to comment
eAi Posted August 7, 2009 Share 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. 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