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: linia
1. attempt to compare number with nil - pokazuje 13 linia blad
s=Vector2(guiGetScreenSize())
msgs={}

types={
[1]={"succes.png"},
[2]={"info.png"},
[3]={"error.png"},
}

function newNoti(el,txt,type)
if el==localPlayer then
if type>3 or type<0 or not tonumber(type) then
type=2
end
local type=types[type][1]
table.insert(msgs,{txt=txt,typ=type,easingFunction="Linear",startTime=getTickCount(),endTime=getTickCount()+5000})
end
end

addCommandHandler("dodaj",function(cmd,typ,...)
local msg=table.concat({...}," ")
newNoti(localPlayer,msg,tonumber(type))
end)

addEventHandler("onClientRender",root,function()
offset=0
for _,v in ipairs(msgs)do
local now = getTickCount()
local elapsedTime = now - v.startTime
local duration = v.endTime - v.startTime
local progress = elapsedTime / duration

local fAnimationTime = getEasingValue(progress, v.easingFunction)

local alpha = (1-fAnimationTime)*255
if alpha<0 then
table.remove(msgs,1)
end
dxDrawRectangle(15, 638+offset, 391, 62, tocolor(57, 57, 57, 182), false)
dxDrawImage(201, 676+offset, 0, 0, v.typ, 0, 0, 0, tocolor(255, 255, 255, alpha), false)
dxDrawImage(822, 428+offset, 0, 0,v.typ, 0, 0, 0, tocolor(255, 255, 255, alpha), false)
dxDrawImage(742, 393+offset, 0, 53, v.typ, 0, 0, 0, tocolor(255, 255, 255, alpha), false)
dxDrawImage(15, 636+offset, 391, 64...
2. Linia gasnicza strazy
Witam ot?? chcia?bym napisa? skrypt na w?? stra?acki taki jak na serwerze pylife czy emstories. Chcia?em si? zapyta? jakich funkcji u?y?. Daje :piwo: i R*
3. [INNE] Linia jest za długa jak to zniwelować
Wyskakuj? mi takie errory

Kod:

(11746) : error 075: input line too long (after substitutions)
(11747) : error 037: invalid string (possibly non-terminated string)
(11747) : error 017: undefined symbol "Admiral"
(11747) : warning 215: expression has no effect
(11747) : warning 215: expression has no effect
(11747) : error 001: expected token: ";", but found "$"




Kod:

linia 11745 case 6://Osobowe
linia 11746 {
linia 11747 dShowPlayerDialog(playerid,997,DIALOG_STYLE_LIST,""BIALY"Salon motoryzacyjny","Admiral 55,550$nBravura 57,627$nCadrona 53,158$nElegant 51,792$nElegy 56,359$nEmperor 54,811$nFortune 59,124$nGreenwood 53,868$nIntruder 58,331$nMerit 52,531$nMajestic 51,321nManana 50,500nNebula 55,541$nPremier 63,540$nPrimo 56,523$nPrevion 54,476$nSentinel 51,569$nSolari 58,888$nStratum 65,670$nSunrise 53,555$nTahoma 52,691$nVicent 57,444$nVirgo 61,500$nWashington 59,999$","Kup","Wyjd?");
return 1;
}