Jump to content

Guillaume

Member
  • Content Count

    13
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

10 Good

About Guillaume

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Guillaume

    Arma2NET

    [RESOLVED] A little question here : here is the code (very simple) yet i'd like the _profileName not to be considered as the string _profileName but as the value of it. let me be clear. When this execute it register "_profileName" in the database, and not my actual profileName. how can i manage that ? EDIT : I tried this : there is the method of my dll : The thing the value of _stored in the last Hint is the correct one ( my actual profile name ) but the value stored in the database is "%1". Ok nevermind i found it ^^ here is the correct command line : _store = call compile("Arma2Net.Unmanaged" callExtension format ["ShotCounter [storeNewProfile,%1]",_profileName]);
  2. Guillaume

    Arma2NET

    Thanks a lot, i didn't now that init is executed no matter what. so the script was running multiple times as you said
  3. Guillaume

    Arma2NET

    hi i think i might have a stupid problem I can't resolve: So here is my configuration : Player init command : init.sqf: display.sqf: ShotCounter.dll So here is the problem. Normaly everytime i shot the script is supposed to call the extension and add 1 to the variable counter. But instead of 1 adds 3. So if i do a test and fire my weapon the Hint give me that : Shot 1 : "1" Shot 2 : "6" Shot 3 : "9" Shot 4 : "12" shot 5 : "15" I can't see where is the problem, i must be missing a fundamental part of how all this is working. Hope to have some help here Thanks ( I'm doing my best to speak a decent english, don't be mean ^^ )
  4. Guillaume

    Arma2MySQL

    Ok here is another probleme i cant resolve I have an array with 193 things in it ( allUnits Command returned result of the 193 units on the map) when i trigger my save script i have 3 possible result : - it works and my array is stored in the database as a LONGTEXT - i have an error in the log : Error: 11:13:41 - The number and/or format of the arguments passed in doesn't match. - or i have this error : Warning: 11:13:05 - MySQL error. MySql.Data.MySqlClient.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '["1Rnd_HE_M203","1Rnd_HE_M203","1Rnd_HE_M203","1Rnd_HE_M203","1Rnd_HE_M203","1Rn' at line 1 Ã MySql.Data.MySqlClient.MySqlStream.ReadPacket() Ã MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId) Ã MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId) Ã MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) Ã MySql.Data.MySqlClient.MySqlDataReader.NextResult() Ã MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) Ã MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() Ã Arma2NETMySQLPlugin.MySQL.RunOnDatabase(MySqlCommand command, Int32 maxResultSize) It's like russian roulette. I didn't change anything just triggering the save script several times. //save.sqf //from addaction position = getPos p1; _currentWeapon = currentweapon p1; _currentmags = magazines p1; _obj = allUnits; hint format["Units count :%1",count(_obj)]; //save position "Arma2Net.Unmanaged" callExtension format["Arma2NETMySQLCommand ['test', 'UPDATE position SET x=%1,y=%2,z=%3,weapon='%4',chargeurs='%5' WHERE player ='guigui'']", round(position select 0),round(position select 1),round(position select 2),_currentWeapon,_currentmags]; "Arma2Net.Unmanaged" callExtension format["Arma2NETMySQLCommand ['test', 'INSERT INTO object (objets) VALUES ('%1')']",_obj]; here is the log file : http://pastebin.com/se7CV4g7 EDIT --------------------- Also how can i manage to store an array of array as a string : Civil_ = [["","Civil_","","Civil","Civil_","jtyjtyjty","jtyjtyjtyjtyjty","18","grgdrgrdgdgdrgdrg"],[1.94325e+006,"7822"],["voiture","camion","arme"],["X179TB80","A657DX3","D174NR27","I322GC80","X847NE74","X135OW9","W143VG73","I192MG64","E807OC1","W25RO99","Y738YG69","L374FW11","L180DG3","D950HO93","I79JP22"],["diplome_distillerie","diplome_commercial","diplome_agriculture","diplome_pompier"],[0,0,0,602,0,0,0,9404,0,0,0,0,0,9900,9940,9910],[13,4,25,26,88,88,88,88,88,12,100,0,0],["Civil_Homme45","Tete1","Identiter_Base"],[]] ;publicvariable "Civil_"; I aldready tried : "Arma2Net.Unmanaged" callExtension format["Arma2NETMySQLCommand ['test', 'UPDATE civil SET sauvegarde='%1' WHERE player ='guigui'']",Civil_]; //or civil_format = format ["%1",Civil_]; "Arma2Net.Unmanaged" callExtension format["Arma2NETMySQLCommand ['test', 'UPDATE civil SET sauvegarde='%1' WHERE player ='guigui'']",civil_format ]; I got that error :The number and/or format of the arguments passed in doesn't match.
  5. Guillaume

    Arma2MySQL

    ok thank you !
  6. Guillaume

    Arma2MySQL

    Hi, I managed to store some value in my database ( position of the player as : x, y, z. Those 3 value are stored as int) but when i trie to get them from the database Everything is working except that the value are like that : [[["1542"]]] , ["1554"]]] , [[["0"]]] and i cant use them as numbers in arma 2 what am i missing to be able to use those stored values as variable in sqf scritps ? ------EDIT-------- I managed to make the things works but: the result of : _x = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['test', 'SELECT x FROM position WHERE player=guigui']"; is a 3d array so i had to make some ugly code : _x = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['test', 'SELECT x FROM position WHERE player=guigui']"; _y = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['test', 'SELECT y FROM position WHERE player=guigui']"; _z = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['test', 'SELECT z FROM position WHERE player=guigui']"; _x = call compile _x; _y = call compile _y; _z = call compile _z; _x = _x select 0 select 0 select 0 ; _y = _y select 0 select 0 select 0; _z = _z select 0 select 0 select 0; _x = parseNumber _x; _y = parseNumber _y; _z = parseNumber _z; to be able to use my data in : player setPos[ _x, _Y, _Z]; how can i get rid of those 9 lines ? sorry for my poor english ^^
  7. thanks for the answer :)
  8. HI everyone I'm asking for help for a bug I have with some model i imported from some 3D db on the net The problem is the light on some faces but i think a screenshot is better than every word :) especially if english is not my native language :D http://img84.imageshack.us/i/arma2problem.jpg/
  9. Hi all ! Since patche 1.55 for arrowhead player can't talk with Direct communication, It works when I host It works when I join an other dedicated But Player can't see what is sayed on the chat when they are on our dedicated. Thanks all ---------- Post added at 08:37 PM ---------- Previous post was at 06:43 PM ---------- Up ! Please Help
  10. Guillaume

    Mod OFrL (FRENCH)

    I cant just change the status of the addons on my own. because I need The aproaval of the others Staff member. I assure you that you will be informed soon. (sorry for my english)
  11. Guillaume

    Mod OFrL (FRENCH)

    I think people get offended to quickly and think we are doing things against others. But the simple reason is that the status of the addons are not defined yet. thanks not to crush our work so easly. If you have question MP me thanks Guillaume
  12. Guillaume

    Mod OFrL (FRENCH)

    Et bien nous n'avons poser aucune restriction sur les addons cependant nous n'avons jamais discuter de cela au sein du staff c'est pour cela qu'il ne sont accessible que apres l'inscription. En outre la sortie du pack addons V2 nous permettra d'en discuter. /-----------------------------------------------\ There are no restriction on addons for the mod but we didn't talk about that with the other members of the staff. The V2 release will certainly renew the status of the Addons thanks
  13. Guillaume

    Mod OFrL (FRENCH)

    Ce n'est pas exact le mod n'est pas reservé au français, mais aux francophone Pour la simple raison que nous faisons du RP en français et que l'on discute énormément. Ensuite la présence sur teamspeak étant obligatoire je ne pense pas qu'un public qui ne parle pas français puissent pouvoir s'intégrer. Cependant il existe des Mod "RP" uniquement Anglais. Merci /-------------------------------------------------------------------\ It s not exact ... We dont accept only FRENCH player but only people that can speak french :) For the simple reason that we play with lot of roleplay and talk a lot and it would be difficut for people who don't speak French to follow the discutions between other player. So sorry for those who can't understand french but there is a lot of RP mod that allow only English . Thanks
×