xxdrago

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About xxdrago

  • Rank
    Junior Member

Recent Profile Visitors

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

  1. Hello, it's possible to change the sound for example headshots? How can you do?
  2. ping = self getIP(); he he ;] Website effect: https://imgur.com/a/GQCPA At the end of the map I need to add deaths and kill the player to the database
  3. Hi, I would need to create a script that adds the number of killings and the number of deaths to the database after the map is finished. Can someone give me a simple example of a function? I wrote a simple function that adds players to the database: welcome() { country = self getGeoLocation( 2 ); ping = self getIP(); Uid = self getGuid(); // Laczymy z BD handle = mysql_real_connect("//////", "////////", "///////", "//////"); mysql_query(handle,"SELECT * FROM `gracze` WHERE `uniqid` = " + Uid + ""); arr = mysql_fetch_row(handle); spr = mysql_num_rows(handle); // Sprawdzamy czy uzytkownik jest pierwszy raz :) if( spr == 1 ) { // Your account has been created mysql_query(handle, "UPDATE gracze SET total = total + 1 , `data_ostatniej` = NOW() WHERE `uniqid` = " + Uid + ""); exec("say Welcome^5 " + self.name + " ^7from ^5" + country ); exec("say ^7Last visit: ^5" + arr["data_ostatniej"]); } else { mysql_query(handle, "INSERT INTO `gracze` (`id`, `uniqid`, `nick`, `ip`, `data_utworzenia`, `data_ostatniej`) VALUES (NULL, " + Uid + ", '"+ self.name +"', '"+ ping + "', NOW(), NOW());"); exec("say Welcome^5 " + self.name + " ^7from ^5" + country ); exec("say Your account has been created "); } }
  4. Hi i have errors in logs: ^1******* script runtime error ******* type undefined is not a float: (file 'maps/mp/_utility.gsc', line 31) vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale); * ^1called from: (file 'code/heli.gsx', line 675) vector = vector_scale( anglesToRight( level.mannedchopper.angles ), 100 ); * ^1started from: (file 'code/heli.gsx', line 699) wait .05; * ^1************************************ ^1******* script runtime error ******* pair 'undefined' and 'undefined' has unmatching types 'undefined' and 'undefined': (file 'code/heli.gsx', line 676) new += vector; * ^1started from: (file 'code/heli.gsx', line 699) wait .05; * ^1************************************ How to solve it?