Search results

  1. A

    Pulling data from SQL table in script

    Wow, right, outstanding resource! In one of his tutorials (I read fast) he mentions defining global variables in init.sqf but am I right in thinking that won't solve my problem? init.sqf seems also to be inside the mission.pbo structure and won't do what I want therefore either. I'm guessing...
  2. A

    Pulling data from SQL table in script

    Now that makes rather perfect sense, and would certainly explain why I'm seeing nothing in HiveEXT.log on the server lol. I think the above is probably way over my head in terms of my scripting competency, but perhaps another approach. Your thoughts if you would; The way I see it, I don't...
  3. A

    Pulling data from SQL table in script

    It would appear not. I've defined all the variables using "private" and prefixed all variable names with a random string to be safe, still the same =/
  4. A

    Pulling data from SQL table in script

    Right, so it is... Oh well, there goes that idea... Could it, do you think, be anything to do with the variable names I've used? Or do I need to define them using "private" to ensure there's no conflict?
  5. A

    Pulling data from SQL table in script

    Right, ok I might be getting somewhere here. Nobody's allowed to laugh at this next bit please! I googled the call to see if I could find other examples to compare mine to; when I googled "call server_hiveReadWrite" it presented me with many results, the first of which was a GitHub for...
  6. A

    Pulling data from SQL table in script

    Hi Sarge & all, I've probably taken this a bit to the extreme, but my existing host would not allow me to edit hiveext.ini so I've purchased and set up a second server and deployed my script. I've set the debug level to trace as requested. The issue now is that I'm getting no more...
  7. A

    Pulling data from SQL table in script

    I've submitted a ticket to see if I can get the FTP permissions changed for that file, or have them edit it. All I'm getting at the moment in arma2oaserver.RPT is the following: Does that mean anything to anyone? I get one additional line every time my script triggers, absolutely every time...
  8. A

    Pulling data from SQL table in script

    Apparently I'm going to have some difficulty doing so, my host prevents access to that and a few other files =/ Is there any other way around it or anything else I can try that anybody is aware of?
  9. A

    Pulling data from SQL table in script

    I haven't Sarge, I'm fairly new to this unfortunately and wasn't aware that extra debugging options were available. That would be very helpful in trying to find a resolution to it. Could you point me in the direction of tutorials to do so?
  10. A

    Pulling data from SQL table in script

    So you're getting the "any" returns too? What code are you using and where are you pulling from?
  11. A

    Pulling data from SQL table in script

    Hi Sarge, Hambeast and all, I've not managed to progress any further than this and can't figure out why the script is returning "any". Can anyone offer any assistance or suggestions on the script above? Many thanks! A.
  12. A

    Pulling data from SQL table in script

    Right, getting somewhere. I found my debug messages. \o/ I have the sql pull in my script now, and it's not erroring at all. I'm getting results from my debug messages, but they're not what I want =/ I'm using the following code for the pull: // Define owner of the dome to reference the...
  13. A

    Pulling data from SQL table in script

    I'm not having much luck with this at all =/ I think child:999 is fine for me because when I look in HiveExt.log I see: So I suspect I'm ok on the using of 999, does that sound like a fair assumption based on the above? The reason I'm not having a lot of luck here I think is that I have put...
  14. A

    Pulling data from SQL table in script

    Hi guys and Sarge, Many thanks, but I'm a bit stuck with the parameters at the end of the string: Are those particular conditions necessary? Does one have to include conditions of instance_id and id? In context, I have created a custom table player_domes containing two fields, dome_id and...
  15. A

    Pulling data from SQL table in script

    Ooh hang on, I missed it... _key = format["CHILD:999:select payload, loop_interval, start_delay from message where instance_id = ?:[%1]:", dayZ_instance]; So the table name is in there, in red. Still not sure on the exact syntax I'd need though =/ Upon reading, "format" function appears just...
  16. A

    Pulling data from SQL table in script

    Hi Machine, thanks for your reply! I'm not sure I see the right piece of that code, or at least not in the context that I'm looking for. I'm guessing the string that queries is: _key = format["CHILD:999:select payload, loop_interval, start_delay from message where instance_id = ?:[%1]:"...
  17. A

    Pulling data from SQL table in script

    Hi guys, sorry to bug, does anyone have any ideas or can anyone point me in the right direction for this? :)
  18. A

    Pulling data from SQL table in script

    Hi folks, I am currently writing a script in which I define several variables locally in the script, and set their values there also. In the case of some the values are ones that I may want to update moderately frequently, hopefully without having to un-pack and re-pack my PBO each time. Is...
  19. A

    Variable syntax help, please :)

    That's great, many thanks Moses. The first (just setting the variable) worked like a charm. I'll try the random function in a few days :) Thanks for your help!
  20. A

    Variable syntax help, please :)

    Hi guys, Need a little bit of help with the syntax of a variable definition. Later in a script that I use I have the following: player setPos [4676.18,2509.28,0.001]; I utilise this to teleport a recently kicked player that went somewhere they shouldn't have away from where they were. At...
Back
Top