Jump to content

xTravax

Members
  • Posts

    665
  • Joined

  • Last visited

Everything posted by xTravax

  1. xTravax

    Server list spam

    Actually you haven't stopped. You are still sending the resources over social media networks.
  2. xTravax

    Server list spam

    you forgot to mention that most of those stolen resources are stolen from grafuroam by you so therefore the source of where from this resources are stolen is grafuroam and not your server
  3. also lagging appeared again
  4. xTravax

    The last reply

    No, it's related to me. so unfair ( ali barem hrvatski blaster )
  5. the lag seems to be fixed even tho usb3 driver failed to install(failed to create some process in sys32) do i still need to paste a pastebin link in here or? edit: noticed that i have computer freezes again because of mta mtadiag failed to open event query or something and while it was scanning for customized files it was stuck on 19th for 3 minutes anyway http://pastebin.mtasa.com/145669288
  6. xTravax

    The last reply

    this topic is in blast section. is that related to explosions?
  7. yeah if someone would help me that'd be great in meantime i got latest nightly and now there are no computer freezes but lags e.g when driving fast (having lags in any server, no matter does server have custom resources or not) pastebin is above
  8. i tried switching it so its not only between 0 and 1, but when i put 32,32 its still not that size do you know why?
  9. nvm thanks i havent checked the wiki well edit: i will try your math calculations,thanks
  10. hello im just trying to use stupid gui image function which never works for me instead of using dxDrawImage 323402340923403 times, and ofcourse my 32x32 pixel picture is being drawn with size of 1920x1080 stupidWindow = guiCreateWindow ( 0, 0, 1, 1, " ", true ) avatar = guiCreateStaticImage(0.3,0.3,32,32,"files/images/avatar.png",true,stupidWindow) i am not doing anything wrong,there is just one background image which i HAD to draw with dx functions because stupid gui functions dont do anything right considering images does anyone have a clue why is my 32x32 pixel image being drawn on 1920x1080 resolution size?
  11. http://pastebin.mtasa.com/964481495
  12. hello umm i have been having recently computer freezes each few hours while playing my server on MTA. i have run MTADIag and it gave me this http://pastebin.mtasa.com/352560076 also, it first prompted me to download a new patch, and 6830 or something like that even tho i already had latest nightly which was 6830 (something ending with 30) and now i can't connect to any server,not a single one. i can't connect to 1.0 - 1.4 servers at all. they're not white,they're in other color as i had some very very old mta version. please help me
  13. thank you both! it seems to work good so far
  14. i have used your code on 1920x1080 res and as i went to lower resolution the text moved more and more on right side
  15. hi umm i wanted to ask: what's best method for drawing dx functions considering resolution? i have seen many topics about this but some people say those methods dont work and some say they do, so im not sure anymore and i decided to ask here i have made an userpanel only using (example dxDrawText(screenWidth/3,screenHeight/2.50.......)) and it works awesome on my 1920x1080 resolution but for an example on 1366x768 it looks like crap with half things missing and when there are no stuff missing, images/buttons aren't placed correctly anyway which method would be best for most of resolutions?
  16. xTravax

    question

    i have tried it like this but i really dont know how to make this, also i dont know how could i make this when i write /scan "partofname" that it (temporarily) outputs on chat their nicks,ip and serial all together --server function makeServerRemember() playerName = getPlayerName(source) playerIP = getPlayerIP(source) playerSerial = getPlayerSerial(source) checkIfServerRemembersOfPlayerNick = executeSQLQuery("SELECT `nicks` FROM `pinfo` WHERE `serial`=?", playerSerial) if #checkIfServerRemembersOfPlayerNick == 0 then executeSQLQuery("INSERT INTO `aliases`(serial, nicks) VALUES (?, ?)", playerSerial, playerName) else local actualNicks = checkIfServerRemembersOfPlayerNick[1].nicks if string.find(actualNicks, playerNick) then outputDebugString("Found Player Info in Table") else local addNewNick = actualNicks .. ", " .. playerNick executeSQLQuery("UPDATE `pinfo` SET `nicks`=? WHERE `serial`=?", addNewNick, playerSerial) end end end addEventHandler("onPlayerJoin",root,makeServerRemember) function onNickChange(_,newNick) checkIfServerRemembersOfPlayerNick = executeSQLQuery("SELECT `nicks` FROM `pinfo` WHERE `serial`=?", playerSerial) if #checkIfServerRemembersOfPlayerNick == 1 then local actualNicks = checkIfServerRemembersOfPlayerNick[1].nicks if string.find(actualNicks, newNick) then outputDebugString("Player Changed Name to his Old Nick!") else local addNewNick = actualNicks .. ", " .. newNick executeSQLQuery("UPDATE `pinfo` SET `nicks`=? WHERE `serial`=?", addNewNick, playerSerial) end end end addEventHandler("onPlayerChangeNick",root,onNickChange) function getPlayerFromNamePart(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end function checkAllNicksOfPlayer(thePlayer, cmd, target) local targetPlayer = getPlayerFromNamePart(target) local targetSerial = getPlayerSerial(targetPlayer) if #checkIfServerRemembersOfPlayerNick == 1 then outputChatBox("nicks: "..getPlayerName(targetPlayer)..":#00FF00 "..checkIfServerRemembersOfPlayerNick[1].nicks, thePlayer, 0, 0, 0, true) end end addCommandHandler("scan", checkAllNicksOfPlayer) function createTables() local a = executeSQLQuery("CREATE TABLE IF NOT EXISTS `pinfo` (`serial` TEXT, `nicks` TEXT)") if a then outputDebugString("Created table for players pinfo") end end addEventHandler("onResourceStart", getResourceRootElement(), createTables) error says attempt to get global lenght of 'checkIfServerRemembersOfPlayerNick' (a nil value)
  17. xTravax

    question

    how could i store player's nick,ip,serial into some database e.g sql so that i could keep the info after server restarts? one more thing, if i saved it into some sql database, how could i load it?
×
×
  • Create New...