Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: przelej
1. przelej
troszk? siedz? przy tym i nie wiem w czym jest problem, prosz? o pomoc.

[code]
addCommandHandler ( "przelej",
function ( player, cmd, nick, kwota )
if nick and kwota then

local aplayer = getPlayerFromName ( nick )
if aplayer then
kwota = tonumber(kwota)
if kwota <= getPlayerMoney ( player ) then
takePlayerMoney ( player, kwota )
givePlayerMoney ( aplayer, kwota )
else
outputChatBox ( "Nie masz tyle pieni?dzy!", player, 255,50, 50 )
end
else
outputChatBox ( "Nie ma takiego gracza na serwerze!", player, 255,50, 50 )
end
else
outputChatBox ( "U?yj /przelej [nick] [kwota]", player, 255, 50, 50 )
end
end )

[/code]


b??d:

[code]
[2018-04-01 18:10] start: Requested by Console
[2018-04-01 18:10] Resource 'daj' changed, reloading and starting
[2018-04-01 18:10] WARNING: daj/przelej.lua [Server] is encoded in ANSI instead of UTF-8. Please convert your file to UTF-8.
[2018-04-01 18:10] Some files in 'daj' use deprecated functions.
[2018-04-01 18:10] Use the 'upgrade' command to perform a basic upgrade of resources.
[2018-04-01 18:10] Starting daj
[2018-04-01 18:10] WARNING: Script 'daj/przelej.lua' is not encoded in UTF-8. Loading as ANSI...
[2018-04-01 18:10] SCRIPT ERROR: daj/przelej.lua:1: unexpected symbol near '?'
[2018-04-01 18:10] ERRO...