
golanu21
Members-
Posts
650 -
Joined
-
Last visited
Everything posted by golanu21
-
wtf, you are cool man
-
you need to createColRectangle createPickup -- there you need to create 2,3,4 table with pickups.. for math.random, when you use the command on a colRectangle, then.. to start a math.random on pickups in that area. math.random givePlayerMoney unpack --Events "addCommandHandler" "onPickupHit"
-
for the example a build, i want to replace it..
-
it's a texture there is the texture : http://www.gtagaming.com/downloads/gta-san-andreas/map-mods/19127
-
marker = createMarker function functionName() --ELEMNTS WHEN THE MARKER(marker) IS HIT addEventHandler("onClinetMarkerHit", marker, functionName)
-
try to make a database for it is more simple with database
-
oh, thanx, i fixed it
-
i make for you an script when markerhit, to show you a text "PRESS 'F' TO OPEN SHOP"... local Marker = createMarker ( 296, -37, 999.5, "cylinder", 2, 255, 255, 0, 150 ) setElementInterior( Marker, 1, 296, -37, 999.5 ) function dxText2 ( ) dxDrawText("Press \"F\" for open shop.", 756, 596, 1161, 630, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText("Press \"F\" for open shop.", 756, 594, 1161, 628, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText("Press \"F\" for open shop.", 754, 596, 1159, 630, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText("Press \"F\" for open shop.", 754, 594, 1159, 628, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText("Press \"F\" for open shop.", 755, 595, 1160, 629, tocolor(49, 250, 2, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) end addEventHandler ( "onClientMarkerHit", Marker, function ( hitPlayer, matchingDimension ) if hitPlayer == localPlayer then addEventHandler ( "onClientRender", root, dxText2) function ss () show() showCursor( true ) end bindKey("f", "down", ss) end end ) addEventHandler ( "onClientMarkerLeave", Marker, function ( leftPlayer, matchingDimension ) removeEventHandler ( "onClientRender", root, dxText2) unbindKey("f", "down", ss) end ) for me work perfectly
-
takePlayerMoney (thePlayer,amount) for the example "amount" is not definited...
-
try to definite the ammount..
-
executeSQLQuery( zombie_db, "INSERT INTO characters (model, health, posx, posy, posz, ip, serial, banii) VALUES (?,?,?,?,?,?,?,?) WHERE nume="..getPlayerName(source).."", getElementModel(source), getElementHealth(source), x, y, z, ip, serial, money ) bad argument executeSQLQuery
-
hi, exist a thread with SQL function like this functions "INSERT INTO" "UPDATE" "SELECT * FROM" etc.. ?
-
am o alta problema, de exemplu intru eu, se creeaza in baza de date numele... si detaliile, dar cand intra cineva se creaza si una noua cu detaliile lui si se modifica si celelalte tot cu detaliile lui
-
Necesit ajutor pentru serverul de zombie RPG.. cine e dispus sa ma adauge pe skype sau sa dea un reply la accest mesaj, multumesc
-
Pai normal pentru ca nu ai pus conditie la onPlayerJoin, trebuie sa verifici daca caracterul exista in baza de date. (apropo pune zombie_db = connectToDB() in afara functiei) zombie_db = connectToDB() addEventHandler("onPlayerJoin", getRootElement(), function () local ok = 0 local second = dbQuery( conn, "SELECT * FROM characters WHERE nume=?", getPlayerName(source)) local result, numrows = dbPoll(second, -1) if numrows == 1 then -- daca exista un caracter cu numele asta atunci ok devine 1 ok = 1 end if ok == 0 then -- daca nu exista atunci il introducem x, y, z = getElementPosition(source) dbExec( zombie_db, "INSERT INTO characters (nume, model, health, posx, posy, posz) VALUES (?,?,?,?,?,?)", getPlayerName(source), getElementModel(source), getElementHealth(source), x, y, z ) end end) Nu uita sa stergi ce a bagat in tabel pana acum (sa-l golesti, Empty Table) sa nu se intercaleze valorile. perfect, mersi mult mane
-
nothing.. is fixed work perfectly