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: przecinek
1. przecinek w hudzie np 1,000,000
Mam problem bo nie wiem jak zrobi? przecinki w hudzie Wiem ?e du?o Jest temat?w o tym ale tamte kody Nie dzia?aj? Mi a mam hud pys 3.0 :

[lua]local sx,sy=guiGetScreenSize()
local screenW, screenH=guiGetScreenSize()
function renderHUD()
if getElementData(localPlayer,"notshowhud") then return end
dxSetAspectRatioAdjustmentEnabled( true )

local realtime = getRealTime()
local hour = realtime.hour
local minute = realtime.minute

local x,y,z=getElementPosition(localPlayer)

--%08d
--dxDrawRectangle(screenW * 0.7079, screenH * 0.0417, screenW * 0.2848, screenH * 0.1536, tocolor(0, 0, 0, 155), false)

--dxDrawText(string.format("%02d",hour).." : "..string.format("%02d", minute), sx*1089/1280+1, sy*(30+1)/720, sx*1251/1280+1, sy*92/720+1, tocolor(255, 255, 255, 255), 2, "pricedown", "center", "center", false)
--dxDrawText(string.format("%02d",hour).." : "..string.format("%02d", minute), sx*1089/1280, sy*(30)/720, sx*1251/1280, sy*92/720, tocolor(255, 255, 255, 255), 2, "pricedown", "center", "center", false)

dxDrawText(string.format("PLN %06d", getPlayerMoney()), sx*996/1280+1, sy*60/720+1, sx*1218/1280+1, sy*209/720+1, tocolor(0, 0, 0, 255), 1.50, "pricedown", "center", "center", false)
dxDrawText(string.format("PLN %06d", getPlayerMoney()), sx*996/1280, sy*60/720, ...
2. przecinek
mam problem z kodem bo:
ERROR: Loading script failed: paydaypayday_c.lua:8: unexpected symbol near ','

kod:

local payday 
6000
local paytime 
30
 
 setTimer
(function (plr)
 
givePlayerMoney(payday)
 if 
isObjectInACLGroup("user."..accountnameaclGetGroup("Premium")) then
 outputChatBox
("[PREMIUM] Otrzymujesz wynagrodzenie z okazji konta Premium. Wynagrodzenie to "..paydayplr)
 
end, (1000*60)*paytime0)
3. Przecinek
Jak rozdzieli? co? co si? sk?ada z np.: 6, 23, 34 ( Zapis w bazie danych )
I jak to rozdzieli? ?eby: 6 trafi?o do 1 np ElementData, 23 do 2, a 34 do 3 ?

Prosz? o pomoc :arrow: :piwo: