Jump to content

drk

Members
  • Posts

    1,607
  • Joined

  • Last visited

About drk

  • Birthday 05/01/1997

Details

  • Gang
    EPT
  • Occupation
    Playing and Programming.
  • Interests
    Race, Programming.

Recent Profile Visitors

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

drk's Achievements

Loc

Loc (38/54)

2

Reputation

  1. I'm here, delete this account please. Is anything more needed?
  2. I agree, colors in server's name sucks.
  3. drk

    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. drk

    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. drk

    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. drk

    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. drk

    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. drk

    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. drk

    onColShapeHit

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

    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. "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. Debug the script or you think we need do all for you? lol
  13. No, yours have two times "if ( tVehicles [ getPedOccupiedVehicle ( thePlayer ) ] ) then". A copy of my example and the changed code with "if ...".
  14. drk

    LAG! Windows 8, HELP?

    This happens to me too, it's a Windows 8 compatibility issue.
×
×
  • Create New...