drk

Members
  • Content count

    1,622
  • Joined

  • Last visited

Community Reputation

1 Neutral

About drk

  • Rank
    Loc
  • Birthday 05/01/97

Details

  • Gang
    EPT
  • Occupation
    Playing and Programming.
  • Interests
    Race, Programming.
  1. Report community resources here!

    I'm here, delete this account please. Is anything more needed?
  2. great ideas :D

    I agree, colors in server's name sucks.
  3. help please

    Remove tonumber from xmlFindChild, it's already triggered as number. Anyway, wait for other person, I'm not going to post here because some retardeds will start saying some shits like Solidsnaka.
  4. help please

    elseif ( source == ButtonBuyHouse ) then local nHouse = guiGetText ( housenumber ); triggerServerEvent ( 'HouseSystemBuyHouse', localPlayer, tonumber ( nHouse ) ); end server side : addEvent("HouseSystemBuyHouse",true) addEventHandler ("HouseSystemBuyHouse", getRootElement(), function(housenumber) local root = xmlLoadFile ("homes.xml") local houseHeadRootNode = xmlFindChild (root,"houses",0) local houseRootNode = xmlFindChild (houseHeadRootNode,"house",tonumber(housenumber)) local price = xmlNodeGetAttribute (houseRootNode,"cost") local owner = xmlNodeGetAttribute (houseRootNode,"owner") if not (isGuestAccount (getPlayerAccount(source))) then if (owner == "") and (getPlayerMoney (source) >= tonumber(price)) then takePlayerMoney (source,tonumber(price)) xmlNodeSetAttribute (houseRootNode,"owner",getAccountName(getPlayerAccount(source))) outputChatBox ("Congratulations, you are the new owner!",source,255,0,0,false) outputChatBox ("Price: ".. tostring(price) .. "$!",source,255,0,0,false) for i,v in ipairs ( getElementsByType("pickup")) do local number = getElementData ( v, "housenumber" ) if ( number == housenumber ) then setPickupType ( v, 3, 1272 ) end end xmlSaveFile (root) elseif not (owner == "") then outputChatBox ("This house is already Bought!",source,255,0,0,false) elseif (getPlayerMoney (source) < tonumber(price)) then outputChatBox ("Sorry, you are too poor!",source,255,0,0,false) end end xmlUnloadFile (root) end )
  5. onColShapeHit

    You don't like "Are you sure you never called? You must pay more attention in what you say ^^" ?? If not, why when I say something about, you say the same "I don't want to argue with you" ?? Anyway, I will not lost my time with you, it's a waste.
  6. onColShapeHit

    Are you sure you never called? You must pay more attention in what you say ^^ I can't test scripts in my machine because it sucks and if you have missed something already, why don't you just shut up? And maybe I have somethings wrong because I made it fast, I said it's correct?
  7. onColShapeHit

    First, why don't you stop calling others "KID" when you're one, Solidsnaka? Second, I forgot "Your table contained strings, not numbers.", what the problem? You never missed something? Third, "You had "rAreas" instead of "gAreas" in the second loop." LOL? Fourth, You don't need the fucking onClientResourceStart event.
  8. onColShapeHit

    You're wrong and Aibo too First, in your code, values is nil. And Aibo, I tested it some times. You don't need create functions first, believe me. I can show the part of my GangWar where I add handlers first and then functions and work.
  9. onColShapeHit

    That's not a problem, it works.
  10. onColShapeHit

    local rAreas = { }; local gAreas = { }; local tRedAreas = { { fX = 200, fY = 100, fWidth = 500, fHeight = 500 }; { fX = 300, fY = 50, fWidth = 250, fHeight = 300 }; } local tGreenAreas = { { fX = 200, fY = 100, fWidth = 500, fHeight = 500 }; { fX = 300, fY = 50, fWidth = 250, fHeight = 300 }; } for _, rArea in pairs ( tRedAreas ) do rAreas[_] = createColRectangle ( rArea.fX, rArea.fY, rArea.fwidth, rArea.fHeight ); addEventHandler ( 'onColShapeHit', rAreas[_], onRectangleHit ); addEventHandler ( 'onColShapeLeave', rAreas[_], onRectangleLeave ); end for _, gArea in pairs ( tGreenAreas ) do gAreas[_] = createColRectangle ( gArea.fX, gArea.fY, gArea.fWidth, gArea.fHeight ); addEventHandler ( 'onColShapeHit', gAreas[_], onRectangleHit ); addEventHandler ( 'onColShapeLeave', gAreas[_], onRectangleLeave ); end onRectangleHit = function ( uPlayer ) outputChatBox ( getPlayerName ( uPlayer ) .. ' entered the ColShape!', root, 255, 255, 255, false ); end onRectangleLeave = function ( uPlayer ) outputChatBox ( getPlayerName ( uPlayer ) .. ' left the ColShape!', root, 255, 255, 255, false ); end
  11. [HELP]Learning how to...

    "what could be the easieast way for me, to make it without crashing server?" MySQL? MySQL doesn't crash the server. "the problem i have is to convert server to run in mysql, first of all, is here any1 who could tell me how to get simple user panel, which is made to mysql" I have two, not mine, I never looked into the code, I will see if it uses MySQL. -- If you need help with MySQL, just post here and we help
  12. help me improve a police lights script

    Debug the script or you think we need do all for you? lol
  13. help me improve a police lights script

    No, yours have two times "if ( tVehicles [ getPedOccupiedVehicle ( thePlayer ) ] ) then". A copy of my example and the changed code with "if ...".
  14. LAG! Windows 8, HELP?

    This happens to me too, it's a Windows 8 compatibility issue.