- 211
- 12
- Версия MoonLoader
- .027.0-preview
Lua:
local xpll = 0
function samp.onServerMessage(color, text)
if text:find('Привет (.+)') then
local xp = text:match('Привет (.+)')
xp = xpll:gsub(" ", "")
xpll = xpll + xp
sampAddChatMessage('»>'..xp..' '..xpll, -1)
end
end
код ошибки
s.lua:34: attempt to index upvalue 'xpll' (a number value)
stack traceback:
G:\GTA San Andreas MultiPlayer\moonloader\getstats.lua:34: in function 'callback'
... Andreas MultiPlayer\moonloader\lib\samp\events\core.lua:77: in function 'process_event'
... Andreas MultiPlayer\moonloader\lib\samp\events\core.lua:100: in function 'process_packet'