Wysłany: 2020-10-24, 21:55
evve
Wiek: 24 Na forum: 2695 dni Posty: 15
Nick w MP: cruzeN
Piwa : 306
Wywala mi b??d w core
Kod: local noti = exports['mm_notifications'];
local core = {};
core.refreshTime = function()
if getElementData(localPlayer, 'user:uid') then
local minute = getElementData(localPlayer, 'user:hours');
TA LINIJKA -- minute['main'] = minute['main'] + 1
setElementData(localPlayer, 'user:hours', minute);
end
end
setTimer(core.refreshTime, 60000, 0);
core.premiumCash = 1000;
core.premiumTime = function()
if getElementData(localPlayer, 'user:uid') and getElementData(localPlayer, 'user:premium') then
noti:alert('success', 'Otrzyma?e?/a? '..core.premiumCash..' PLN za przegran? godzine gry z statusem premium.');
triggerServerEvent('premium:giveMoney', resourceRoot, core.premiumCash);
end
end
setTimer(core.premiumTime, 5000, 0);
Wysłany: 2020-10-24, 22:15
VVirmex
Sgrypter luja
Wiek: 21 Na forum: 3365 dni Posty: 281
Nick w MP: AxyZ
Piwa : 234
Nast?pnym razem kod wpisuj w [lua] a po drugie nie zdzia?amy nic bez b??du w konsoli - podaj b??d.
[ Dodano : 2020-10-24, 22:17 ]
A nie dobra, cofam - poprawka.
minute [ 'main' ] = tonumber ( minute [ 'main' ]) + 1
I jeszcze tak zapytam, czy co? zmienia?e? przy tym kodzie opr?cz pr?by naprawy tego skryptu?
Je?li tak - powiedz co zmienia?e?.
Tagi: cos :: core
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: