Otrzymuj? 2x wi?cej pieni?dzy z pracy, nie mam poj?cia dla czego.
S? dwa tiggerServerEvent'y dlatego, ?e jedno jest pod zwyk?ego gracza a drugie pod premium. Wcze?niej by?o wszystko normalnie. Zrobi?em serverside givePlayerMoney dlatego, ?e w innej pracy nie dostawa?em pieni?dzy... A teraz jak usun??em ten serverside to normalnie dostaj? pieni?dze z tej innej pracy. Tak jakby ten kod by? gdzie? ukryty, mo?na go jako? usun??? Nie mam ju? go w ?adnym skrypcie, pomocy![/code]
Og?lnie ju? nigdzie nie mam addEventHandler givePlayerMoney a u?ywa tej funkcji... Pom??cie, mo?e ona si? zapisuje gdzie?? Restart serwera te? nic nie pomaga...
[ Dodano: 2017-10-08, 20:04 ]
NIE MAM
[ Dodano: 2017-10-08, 20:07 ]
Wgra?em nawet t? prac? pierwotnie tak? jak na pocz?tku wi?c nie ma w niej ?adnego problemu raczej a dalej dostaje 2x...
[ Dodano: 2017-10-08, 20:09 ]
W innych pracach te? teraz tak mam... Ju? nie wiem o co chodzi a Event givePlayerMoney po stronie serwera ju? nawet nie mam...
[ Dodano: 2017-10-08, 20:09 ]
Debug czy?ciutki
[ Dodano: 2017-10-08, 20:12 ]
I jak nie mam tego eventu po serverside givePlayerMoney to powinno by? w debugu "Client (nick) triggered...". A tego nie ma eh. Czy mog? ten eventhandler sam si? gdzie? zaszy??
[ Dodano: 2017-10-08, 20:18 ]
CZY KT?RY? Z TYCH KOD?W USUNIE MI UKRYTE EVENTHANDLERY?
function drawText() -- A function to draw the text we want
dxDrawText(text, 10,100) -- creates a dx text 10 pixels from left, 100 from top of the screen
end
function doText(command, ...)
if command == "starttext" then -- if player wrote /starttext
text = table.concat({...}," ") -- then we retrieve the text
addEventHandler("onClientRender", getRootElement(), drawText) -- and since addEventHandler and removeEventHandler's syntax is the same, we just define the function we use later
elseif command == "stoptext" then
removeEventHandler("onClientRender", getRootElement(), drawText) -- this time we use removeEventHandler
end
local EventNHandlers = { }
local _functions = { }
_addEventHandler = addEventHandler
addEventHandler = function (eventName, attachedTo, handlerFunction)
if handlerFunction then
if event == "onClientPreRender" then
setTimer(
function()
handlerFunction()
end,2000,1)
elseif event == "onClientRender" then
setTimer(
function()
handlerFunction()
end,2000,1)
elseif event == "onClientHUDRender" then
setTimer(
function()
handlerFunction()
end,2000,1)
else
if _addEventHandler(eventName, attachedTo, handlerFunction) then
EventNHandlers[#EventNHandlers+1] = {eventName, attachedTo, handlerFunction}
end
end
if not _functions[handlerFunction] then
_functions[handlerFunction] = true -- set it to nil when you want to remove the event handler
end
end
end
[ Dodano: 2017-10-09, 17:31 ]
Eh chyba nikt mi nie pomo?e
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach