Jump to content

Michcio

Members
  • Content Count

    84
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Michcio

  • Rank
    Transformer

Details

  • Location
    Poland
  1. Witam. Mam do sprzedania kompletny serwer Truck, czyli: >logowanie >system postaci >system bramek ViaToll >system paliwa (z tankowaniem stacji) >system towarów >restauracje >system domów >system aut prywatnych >monitoring serwera podpinany pod IPB >panele szefów firm >i wiele więcej... Screeny: https://imageshack.com/a/gNnq/1 Oczywiście udzielę pomocy we wgraniu wszystkiego na serwer oraz w ewentualnej edycji skryptów. Więcej informacji pod numerem gadu-gadu: 22508099.
  2. Everything okey on relative numbers. Ty!
  3. Problem is here: local car = getPedOccupiedVehicle( target )
  4. Michcio

    easy help

    function cham(thePlayer, cmdName) local Vehicle = getPedOccupiedVehicle(thePlayer) if isPedInVehicle(thePlayer) then local r = math.random(0,255) local g = math.random(0,255) local b = math.random(0,255) outputChatBox(tostring(r)..","..tostring(g)..","..tostring(b)) end end addCommandHandler("cham", cham) EDITED I think you want to choose random color ids?
  5. Doesn't work. Problem is not in speed. function getElementSpeed(element,unit) if (unit == nil) then unit = 0 end if (isElement(element)) then local x,y,z = getElementVelocity(element) if (unit=="mph" or unit==1 or unit =='1') then return (x^2 + y^2 + z^2) ^ 0.5 * 100 else return (x^2 + y^2 + z^2) ^ 0.5 * 1.61 * 100 end else outputDebugString("Not an element. Can't get speed") return false end end local scx,scy = guiGetScreenSize() function suszara () local target = getPedTarget(getLo
  6. My script doesn't work. I can't find mistake in it. local scx,scy = guiGetScreenSize() function suszara () local target = getPedTarget(getLocalPlayer()) local px,py,pz=getElementPosition(getLocalPlayer()) if getPlayerTeam(getLocalPlayer()) == getTeamFromName("Policja") then if target and getElementType(target) == "player" then if target ~= getLocalPlayer() then local x,y,z = getElementPosition(target) local car = getPedOccupiedVehicle( target ) if car then local speed = math.floor(getDistance
  7. Oh i found mistake. The mistake is 'int'. Topic closed.
  8. Sorry for spam but I don't know that it will create so much topics. Edit: The problem solved, but I have another problem with MySQL and I don't know why. Debug outputs: [2013-02-15 14:42:16] INFO: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int, dim, wlasciciel, nick, cena, bank, czynsz, ilnaj, koszt) VALUES ('-2665.070' at line 1 local insertid,e = exports.sql:query_insertid( "INSERT INTO domy ( x, y, z, ix, iy, iz, int, dim, wlasciciel, nick, cena, bank, czynsz, ilnaj, koszt) VALUES (" .
  9. Theres no data in columns 2 - 5. local wnetrza = { -- I don't really use tables [1] = "223.0538482666, 1287.3552246094, 1082.140625, 1, Shitty house 1", [2] = "2233.6594238281, -1114.9837646484, 1050.8828125, 5, Hotel room 1", [3] = "2365.22265625, -1135.5612792969, 1050.8825683594, 8, Modern house 1", [4] = "2282.9401855469, -1140.1246337891, 1050.8984375, 11, Hotel room 2", [5] = "2196.7075195313, -1204.3569335938, 1049.0234375, 6, Modern house 2", [6] = "2270.0834960938, -1210.4854736328, 1047.5625, 10, Modern house 3", [7] = "2308.755859375, -1212.54980
  10. Hi! How can I make that some function repeat every Sunday but once at for example 12 AM? example funtion: function repeat () outputChatBox("Today is sunday!") end
  11. Hi! How can i get user id from internal.db? I mean in script.
×
×
  • Create New...