Jump to content

Andreas.

Members
  • Content Count

    33
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Andreas.

  • Rank
    Rat
  1. bad arguement at killTimer: 20 and it doesn't remove the dxtext, it's still there
  2. I want the dxmessage to disappear directly if I trigger the event while it's already active.
  3. I want the result to be: Position: xvalue, yvalue, zvalue Money: lol the current result: Money: lol2381.0546875-2175.641601562522.9655265808118 LUA code used: function log(account, message) if not (fileExists("logs/"..account)) then log = fileCreate("logs/"..account) else log = fileOpen("logs/"..account) end fileWrite(log, "\n"..message) fileClose(log) end addEvent("log", true) addEventHandler("log", root, log) function testlog(client) local playerAccount = getPlayerAccount(client) local accName = getAccountName ( pl
  4. The command handler is obviously only there to test it.
  5. I'm trying to make my own notification system but I have encountered couple of problems. The deletion is not working AT ALL as I want. I want it so that when a message is already active, it will delete the old one and the timer will start all over again. Currently I can make one message, and I can make yet another one on top of that (does not remove it) so yeah, help is highly appreciated! And yea, I know the code is highly fucked up. local dxMessage = {} dxStatus = false function dxEvent(message, r, g, b) for index, message in pairs(dxMessage) do dxDrawText(message[1],573.0,10
  6. Hoi, but ~= is the same as "not" right? If it is, why can't I use it? "unexpected symbol near ~"
  7. if I click on a vehicle and there is a driver, it should output the drivers name and destroy it
  8. function onClick(button, state, clickedElement) if button == "left" and state == "up" then if clickedElement then if getElementType(clickedElement) == "player" then choosenPlayer = clickedElement elseif getElementType(clickedElement) == "vehicle" then choosenPlayer = clickedElement destroyElement(clickedElement) local playerVeh = getPedOccupiedVehicle(clickedElement) outputChatBox(playerVeh) end end end
  9. lol, that was the problem. Really thank you!
  10. Okay, cool but now it outputs it all in a single line, I want a new line for each data. http://i47.tinypic.com/9k6o1u.png
  11. function printAllData ( thePlayer ) local playerAccount = getPlayerAccount( thePlayer ) -- get his account if ( playerAccount ) then -- if we got the account then local data = getAllAccountData( playerAccount ) -- get data count = 0 for _ in pairs(data) do count = count + 1 end -- get the count outputChatBox ( "table holds " .. count .. " entries" ) -- output number of rows if ( data ) then for k,v in pairs ( data ) do accountLog = fileCreate("accounts/"..getAccountName(playerAccount)) outputC
×
×
  • Create New...