
Karuzo
Members-
Posts
1,213 -
Joined
-
Last visited
Everything posted by Karuzo
-
[quote name=..&G:..] I want to add some more things and release it here
-
There's a resource called GUI interpolate effecta or smth like that , can't remember .
-
viewtopic.php?f=148&t=46167&hilit=export
-
I just fixed the event problem.
-
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)
-
giveWeapon is a server-side function so this won't work.
-
Haha thank you! Works, idk why
-
That outputs everything which exists in that table. I don't need to post that, since those datas are passwords etc..
-
huh weird it says it expected a string but got nil. So it doesn't get the data right ? How should i solve this ?
-
function forceRedirectPlayer(commandName,who) redirectPlayer( who, "192.168.1.64", 22003 ) else outputDebugString("Unknown error.") end addCommandHandler("freconnect",forceRedirectPlayer)
-
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.
-
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.
-
Think of doing something unique which hasn't exist before. Like dunno some people are makin a nfs re-make or smth like that.
-
So you're sure that you created a team called like that and are in that team ?
-
idk but you could replace that car texture? but im not sure.
-
That means he can't get the table from getPlayersInTeam.
-
Alles klar
-
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 ?
-
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.
-
xTravax Playa Partner Posts: 511 Joined: Mon Jan 02, 2012 2:58 pm Gang: Legend-Racers LR//
-
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/
-
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):
-
Maybe those flags aren't added ?