Jump to content

Cheetah.dff

Members
  • Posts

    5
  • Joined

  • Last visited

Details

  • Gang
    bilmem

Cheetah.dff's Achievements

Vic

Vic (3/54)

0

Reputation

  1. I gave as an example the command handler. command handler is running, but I want her out of the winning players
  2. I created a script that I want to come out all right, but dancing girl winner in his car. How can I do it? function pedcreation ( player ) local x, y, z = getElementPosition ( player ) local rot = getPedRotation ( player ) peds = createPed (92, x, y, z + 2 , rot ) setPedAnimation ( peds, "DANCING", "dnce_M_a") attachElements ( peds, player ,0.5,2,1.5) end addCommandHandler ( "piepie", pedcreation ) addEvent("onMapStarting") addEventHandler("onMapStarting", getRootElement(), function() destroyElement(peds) end)
  3. client side function show_window () local IsWindowVisible = guiGetVisible(pecere) if (IsWindowVisible == true) then guiSetVisible(pecere, false) showCursor(false) triggerServerEvent("save",getLocalPlayer()) end if (IsWindowVisible == false) then guiSetVisible(pecere, true) showCursor(true) end end How do I do it? --for upgradeKey, upgradeValue in ipairs ( upgrades ) do result: [2012-09-03 17:02:40] WARNING: [script]\wpanel\server.lua:285: Bad argument @ 'getVehicleUpgradeSlotName' [2012-09-03 17:02:40] ERROR: [script]\wpanel\server.lua:285: attempt to concatenate global 'upgradeValue' (a nil value)
  4. Only the last is listed in the update record, but I just want to save the wheels. Can you help me in this regard. -I'm sorry If this is not understood to have used Google translation function save () local vehicle = getPedOccupiedVehicle(source) local adam = getPlayerAccount (source) local upgrades = getVehicleUpgrades ( vehicle ) for upgradeKey, upgradeValue in ipairs ( upgrades ) do setAccountData (adam, "teker", upgradeValue) outputChatBox ( getVehicleUpgradeSlotName ( upgradeValue ) .. ": " .. upgradeValue ) end end addEvent( "save", true ) addEventHandler( "save", getRootElement(), save ) saving database value
×
×
  • Create New...