Jump to content

Karuzo

Members
  • Posts

    1,213
  • Joined

  • Last visited

Everything posted by Karuzo

  1. [quote name=..&G:..] I want to add some more things and release it here
  2. There's a resource called GUI interpolate effecta or smth like that , can't remember .
  3. viewtopic.php?f=148&t=46167&hilit=export
  4. I just fixed the event problem.
  5. addEvent("zorqrok",true) function send() local sWidth, sHeight = guiGetScreenSize() dxDrawRectangle(0, sHeight-29, sWidth, sHeight, tocolor(0, 0, 0, 150), true) yazi1 = dxDrawText("text zone", 0, sHeight-29, sWidth, sHeight, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, true, false) setTimer ( function() local sWidth, sHeight = guiGetScreenSize() destroyElement(yazi1) yazi2 = dxDrawText("text zone", 0, sHeight-29, sWidth, sHeight, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, true, false) end, 10000, 1 ) destroyElement(yazi2) send() end addEventHandler( "zorqrok" , getRootElement(),send)
  6. giveWeapon is a server-side function so this won't work.
  7. Haha thank you! Works, idk why
  8. That outputs everything which exists in that table. I don't need to post that, since those datas are passwords etc..
  9. huh weird it says it expected a string but got nil. So it doesn't get the data right ? How should i solve this ?
  10. function forceRedirectPlayer(commandName,who) redirectPlayer( who, "192.168.1.64", 22003 ) else outputDebugString("Unknown error.") end addCommandHandler("freconnect",forceRedirectPlayer)
  11. Yeah but that's not the only thing i've got in that table so i especially need the hascar column. I made the same thing with my login script and that works great there.
  12. Hey Guys, so i wanted to write my Car-system to mysql but i always get a weird error if i want to buy a car. This is what i get : ERROR: CarSys\car_h_s.lua:29: attempt to index upvalue 'datas' (a nil value) This is a part of the code(where the error occurs): function vehicleCreat( player, preis,vId) local account = tostring(getElementData ( source, "username" )) if connection then local query = dbQuery(connection, "SELECT * FROM wcf1_user WHERE username = '"..account.."'") local result = dbPoll(query,-1) datas = result[1] local hascar = datas.hascar -- this is the line where the error occurs if hascar == 1 then outputChatBox("Du hast bereits ein Auto!",player, 125,0,0,false) else local money = datas.money if money >= math.abs(preis) then local vName = getVehicleNameFromModel ( vId ) local insert = dbExec ( connection, "INSERT INTO wcf1_user(vehid,carhealth,name,hascar) VALUES(?,?,?,?)", vId, 1000, tostring(vName), 1) vehicle = createVehicle ( vId, 545.33130, -1257.61816, 16.62232, 0, 0, -45 ) warpPedIntoVehicle(player, vehicle) takePlayerMoney ( player, math.abs(preis) ) --setElementData(player, "CarGot",true) outputDebugString("query successfull") outputChatBox("Du hast dir erfolgreich ein " .. vName.. " gekauft!", player, 0, 125, 0, false) else outputChatBox("Du kannst dir dieses Auto nicht leisten!",player, 125, 0, 0, false) outputDebugString("Query not successfull!") end end end end addEvent( "CarBuy", true ) addEventHandler( "CarBuy", root, vehicleCreat ) hascar is a column where i set the data to 1 if he has a car and to 0 if he doesn't have a car or sold it. Hope you could help me out with this.
  13. Think of doing something unique which hasn't exist before. Like dunno some people are makin a nfs re-make or smth like that.
  14. Karuzo

    Weird error

    So you're sure that you created a team called like that and are in that team ?
  15. Karuzo

    Synced Ball

    idk but you could replace that car texture? but im not sure.
  16. Karuzo

    Weird error

    That means he can't get the table from getPlayersInTeam.
  17. Oh habe den Part wohl überflogen Naja wenn das so ist, könnte ich mich direkt bei Greekz in Skype melden oder einfach per Email ?
  18. Hört sich alles echt gut an, find ich auch richtig nice. Schade das ich nicht mitmachen kann da ich noch zu wenig HTML/CSS Kenntnisse habe. Wünsche euch noch viel glück. Lg, KRZO.
  19. Karuzo

    The last reply

    xTravax Playa Partner Posts: 511 Joined: Mon Jan 02, 2012 2:58 pm Gang: Legend-Racers LR//
  20. So you can understand me better what i am trying to tell you, here's an example(first one): http://css-tricks.com/examples/ProgressBars/
  21. Hey Guys, so i want to make a smooth progress bar. But i need a little help with it. I have a picture, but i want to rotate/move the stripes. I have a dx drawn image, i'm trying to use the rotation arguments but it looks kinda weird. Is there any possibility to rotate the stripes only around the progressbar ? Here is a screenshot of my progress bar( i mean the dark green stripes):
  22. Maybe those flags aren't added ?
×
×
  • Create New...