--ustawienia
if kolorR < 0 then
outputChatBox("Kolor 'R' nie mo?e by? mniejszy ni? 0")
return
end
if kolorR > 255 then
outputChatBox("Kolor 'R' nie mo?e by? wi?kszy ni? 255")
return
end
if kolorG < 0 then
outputChatBox("Kolor 'G' nie mo?e by? mniejszy ni? 0")
return
end
if kolorG > 255 then
outputChatBox("Kolor 'G' nie mo?e by? wi?kszy ni? 255")
return
end
if kolorB < 0 then
outputChatBox("Kolor 'B' nie mo?e by? mniejszy ni? 0")
return
end
if kolorB > 255 then
outputChatBox("Kolor 'B' nie mo?e by? wi?kszy ni? 255")
return
end
if kolorR == nil then
outputChatBox("Nie wype?ni?e? wszystkich p?l")
return
end
if kolorG == nil then
outputChatBox("Nie wype?ni?e? wszystkich p?l")
return
end
if kolorB == nil then
outputChatBox("Nie wype?ni?e? wszystkich p?l")
return
end
--ustawienia
if (tonumber)kolorR < 0 then
outputChatBox("Kolor 'R' nie mo?e by? mniejszy ni? 0")
return
end
if (tonumber)kolorR > 255 then
outputChatBox("Kolor 'R' nie mo?e by? wi?kszy ni? 255")
return
end
if (tonumber)kolorG < 0 then
outputChatBox("Kolor 'G' nie mo?e by? mniejszy ni? 0")
return
end
if (tonumber)kolorG > 255 then
outputChatBox("Kolor 'G' nie mo?e by? wi?kszy ni? 255")
return
end
if (tonumber)kolorB < 0 then
outputChatBox("Kolor 'B' nie mo?e by? mniejszy ni? 0")
return
end
if (tonumber)kolorB > 255 then
outputChatBox("Kolor 'B' nie mo?e by? wi?kszy ni? 255")
return
end
if (tonumber)kolorR == nil then
outputChatBox("Nie wype?ni?e? wszystkich p?l")
return
end
if (tonumber)kolorG == nil then
outputChatBox("Nie wype?ni?e? wszystkich p?l")
return
end
if (tonumber)kolorB == nil then
outputChatBox("Nie wype?ni?e? wszystkich p?l")
return
end
(tonumber) czy tonumber(kolorR) pr?bowa?e?? Pierwszy raz si? spotykam z t? form? u?ycia, nawet nie wiem czy taka istnieje '(tonumber)'.
Podpis
Jedyny kontakt ze mną to PW forum
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
&EDIT
Nie chodzi mi o samo tonumber(zmienna) tylko te form? '(tonumber)zmienna'
Podpis
Jedyny kontakt ze mną to PW forum
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach