Sziasztok ebbe mi lehet a hiba ?
function onQuit (quitType, reason, responsibleElement)
if not (isGuestAccount (getPlayerAccount (source))) then
account = getPlayerAccount (source)
if (account) then
local egyszam = 1
setAccountData (account, \"teszt\", egyszam)
end
end
end
addEventHandler (\"onPlayerQuit\", getRootElement(), onQuit)
function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin)
if not (isGuestAccount (getPlayerAccount (source))) then
if (accountData) then
local teszt = getAccountData(theCurrentAccount,\"teszt\")
end
end
end
addEventHandler (\"onPlayerLogin\", getRootElement(), playerLogin)
// ez egy masik resource
function Get()
player = getLocalPlayer()
local egyszam = triggerServerEvent(\"Getting\",resourceRoot,player)
end
addCommandHandler(\"lekeres\",Get)
function teszt(player)
bor = getAccountData(player,\"teszt\")
return bor
end
addEvent(\"Getting\",true)
addEventHandler(\"Getting\",resourceRoot,teszt)
Válaszotokat elöre köszi