Jump to content

golanu21

Members
  • Posts

    650
  • Joined

  • Last visited

Everything posted by golanu21

  1. golanu21

    Pickups

    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"
  2. for the example a build, i want to replace it..
  3. how i replace a world object.. ?
  4. it's a texture there is the texture : http://www.gtagaming.com/downloads/gta-san-andreas/map-mods/19127
  5. golanu21

    help

    this event is for a command, when player do a command like this "/start".. i need when player say something. like this "hi"
  6. golanu21

    help

    hi, how i make when player say a word in the chat to do something..
  7. marker = createMarker function functionName() --ELEMNTS WHEN THE MARKER(marker) IS HIT addEventHandler("onClinetMarkerHit", marker, functionName)
  8. try to make a database for it is more simple with database
  9. golanu21

    SQL Error

    i have say that man
  10. golanu21

    SQL Error

    man show the script.....
  11. 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
  12. takePlayerMoney (thePlayer,amount) for the example "amount" is not definited...
  13. try to definite the ammount..
  14. golanu21

    SQL Error

    use dbExec dbExec( THEDATABASE, "CREATE TABLE IF NOT EXISTS table ....
  15. 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
  16. golanu21

    SQL Error

    show the code..
  17. hi, exist a thread with SQL function like this functions "INSERT INTO" "UPDATE" "SELECT * FROM" etc.. ?
  18. 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
  19. Necesit ajutor pentru serverul de zombie RPG.. cine e dispus sa ma adauge pe skype sau sa dea un reply la accest mesaj, multumesc
  20. 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
  21. nothing.. is fixed work perfectly
×
×
  • Create New...