Jump to content

Paski

Member
  • Content Count

    15
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About Paski

  • Rank
    Private First Class
  1. Paski

    Arma2MySQL

    I've got a few questions. When using this which method of sending the query is best? My server would be local so it should be fast to send data to and from the two servers. What is the best way to send an array over to the database from game and vice versa?
  2. _player setVariable["cmoney",100,false]; _player setVariable["canfood",1,false]; _player setVariable["medkits",0,false]; _player setVariable["water",1,false]; _player setVariable["fuel",0,false]; _player setVariable["repairkits",0,false]; _player setVariable["fuelFull", 0, false]; _player setVariable["fuelEmpty", 1, false]; _player setVariable["bombs",false,false]; _player setVariable["spawnBeacon",0,false]; _player setVariable["camonet",0,false]; How can I pass those player local variables to the server?
  3. Could I (we) get a more "indepth" example of this? Like just saving the location would be super useful!
  4. Can someone help me in understanding these variables. How can I make a script, lets say to log the position of EVERY player on my server. How do I make a script that gets information from client (Lets say money) and sends it to server to save the data. I can do the saving part no biggie, my issue is actually receiving the variable. With that being said, how would I send the variable to a single player when they login (loading the data and sending to client). If anyone could post an example script that'd be great. I just have a tough time with variables.
  5. I was wondering how I could enable a post processing effect for 1 player when he used an item or clicked a button. Also, how can I make or add things to the effects such as images?
  6. I've got a script so when a player picks up money it adds it to his "inventory", I was wondering if it was possible to log the player name, the position (In grids) and the amount picked up into a text file or some sort of Arma 2 log.
  7. I understand that and that would be fine. I'll be using this for different mods so the listbox isn't really an option.
  8. I still need help doing this if anyone can help. I just don't understand menus.
  9. Kempco, why can't I use a text box instead of listbox? Everytime I try and switch the listbox to TextBox.
  10. Thanks. I'll take a look at it. I basically want: A textbox that the user in-game can input a vehicle ID (like green_bus_C2) or something in that nature. Then have 2 buttons, 1 that says "Close" which closes the menu. The other would say "Spawn" which would spawn the car without closing the menu.
  11. Horner, could you give me an example dialog? I found this somewhere on a forum. I'm just learning and trying to see what works for what I need to do.
  12. I get an error, it has something to do with the Input_field, what is the code for a textbox?
  13. Anyone know? I'd really love help on this.
  14. Ok so I am making a dialog so I can spawn cars in my mission. I've done it so it spawns 1 type of car, but now I need it to allow me to type a car ID in (USEC_Maule_M7_SKI for example) and then click a button to spawn that car on my marker named "vehspawn". Can anyone help me create this? I haven't found a good guide anywhere and I learn by seeing an example of what I am trying to do. What I currently have (WRONG): respawn = "BASE"; respawnDelay = 15; respawnDialog = false; class SampleDialog { idd = -1; movingEnable = false; controlsBackground[] = { 1, 0.1, 0.1, 0.8 }; controls[] = { ButtonControl, HintButton, Input_Field }; objects[] = {}; class ButtonControl { idc = -1; type = 1; style = 2; moving = false; x = 0.45; y = 0.9; h = 0.05; w = 0.1; font = "Zeppelin32"; sizeEx = 0.025; action = "closeDialog 0;"; text = "Close"; default = false; colorText[] = {1,0,0,1}; colorFocused[] = {0,1,0,1}; colorShadow[] = {0.8,0.8,0.8,1}; colorBorder[] = {0.5,0.5,0.5,1}; colorBackground[] = {0,1,1,1}; colorBackgroundActive[] = {0,1,0,1}; colorDisabled[] = {1,0,0,1}; colorBackgroundDisabled[] = {0.5,0.5,0.5,1}; borderSize = 0.015; offsetX = 0.005; offsetY = 0.005; offsetPressedX = 0.002; offsetPressedY = 0.002; soundEnter[] = {"",0,1}; // NoSound soundPush[] = {"",0,1}; // NoSound soundClick[] = {"",0,1}; // NoSound soundEscape[] = {"",0,1}; // NoSound }; class Input_field { idc = 120; type = CT_EDIT; style = ST_LEFT; x = 0.40; y = 0.35; w = .2; h = .04; sizeEx = .02; font = Zeppelin33; text = "0"; colorText[] = { 0, 0, 0, 1 }; autocomplete = false; colorSelection[] = {0,0,0,1}; colorBackground[] = { }; }; class HintButton : ButtonControl { x = 0.6; text = "Spawn Car"; action = "_unit='[ctrlText 120]' createVehicle (getMarkerPos 'vehspawn');"; }; };
×