Deleted Posts
1,684 replies Im master on Lua Scripting, on smartphone. My Calculator Script
GUI:SetRelativeMode(true)
InputEditText = GUI:AddEditText(0, 0.1, ScreenSizeX, 0.1, "")
InputEditText:SetEnabled(false)
InputEditText:SetNumericOnly(true)
Digits = {}
Digit = {}
rr = 0 bb = 255
for i = 1,ScreenSizeY do
rr = rr + (255/ScreenSizeY)
bb = bb - (255/ScreenSizeY)
Screen:DrawRect(0,i,ScreenSizeY,1,Color:rgb(rr,250,bb))
end
Digits[0] = GUI:AddButton(0, 0.2, 0.25, 0.20, "0")
Digits[1] = GUI:AddButton(0, 0.4, 0.25, 0.20, "1")
Digits[2] = GUI:AddButton(0.25, 0.4, 0.25, 0.20, "2")
Digits[3] = GUI:AddButton(0.50, 0.4, 0.25, 0.20, "3")
Digits[4] = GUI:AddButton(0, 0.6, 0.25, 0.20, "4")
Digits[5] = GUI:AddButton(0.25, 0.6, 0.25, 0.20, "5")
Digits[6] = GUI:AddButton(0.50, 0.6, 0.25, 0.20, "6")
Digits[7] = GUI:AddButton(0, 0.8, 0.25, 0.20, "7")
Digits[8] = GUI:AddButton(0.25, 0.8, 0.25, 0.20, "8")
Digits[9] = GUI:AddButton(0.50, 0.8, 0.25, 0.20, "9")
ClearButton = GUI:AddButton(0.25, 0.2, 0.25, 0.20, "CE")
EqualButton = GUI:AddButton(0.50, 0.2, 0.25, 0.20, "=")
CountButton = GUI:AddButton(0.9,0,0.1,0.07,"")
SumButton = GUI:AddButton(0.75, 0.2, 0.25, 0.20, "+")
SubButton = GUI:AddButton(0.75, 0.4, 0.25, 0.20, "-")
MulButton = GUI:AddButton(0.75, 0.6, 0.25, 0.20, "*")
DivButton = GUI:AddButton(0.75, 0.8, 0.25, 0.20, "/")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
function ClearAllDigits()
InputEditText:SetText("")
CountButton:SetText("")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
end
function CountFunc(v)
if InputEditText:GetText():len() > 0 then
if Mode:len() == 0 then
Mode = ""..v..""
CountButton:SetText(""..v.."")
TempValue = InputEditText:GetText()
InputEditText:SetText("")
NewValue = "0"
else
Equal()
end
end
end
function SumFunc()
CountFunc("+")
end
function SubFunc()
CountFunc("-")
end
function MulFunc()
CountFunc("*")
end
function DivFunc()
CountFunc("/")
end
function Equal()
if Mode:len() ~= 0 then
if Mode == "+" then
NewValue = tonumber(InputEditText:GetText())
FinalValue = tonumber(TempValue) + tonumber(NewValue)
InputEditText:SetText(""..FinalValue.."")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
elseif Mode == "-" then
NewValue = tonumber(InputEditText:GetText())
FinalValue = tonumber(TempValue) - tonumber(NewValue)
InputEditText:SetText(""..FinalValue.."")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
elseif Mode == "*" then
NewValue = tonumber(InputEditText:GetText())
FinalValue = tonumber(TempValue) * tonumber(NewValue)
InputEditText:SetText(""..FinalValue.."")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
elseif Mode == "/" then
NewValue = tonumber(InputEditText:GetText())
FinalValue = tonumber(TempValue) / tonumber(NewValue)
InputEditText:SetText(""..FinalValue.."")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
end
else
Mode = ""
CountButton:SetText("")
end
end
function AddDigit(v)
lastvalue = ""..tostring(InputEditText:GetText())..""
InputEditText:SetText(lastvalue..""..v)
end
for i = 0, 9 do
Digit[i] = function()
AddDigit(i)
end
end
for i = 0, 9 do
Digits[i]:AddEventHandler("OnTouchDown", Digit[i])
end
EqualButton:AddEventHandler("OnTouchDown", Equal)
SumButton:AddEventHandler("OnTouchDown", SumFunc)
SubButton:AddEventHandler("OnTouchDown", SubFunc)
MulButton:AddEventHandler("OnTouchDown", MulFunc)
DivButton:AddEventHandler("OnTouchDown", DivFunc)
ClearButton:AddEventHandler("OnTouchDown", ClearAllDigits)
CountButton:SetEnabled(false)
GUI:SetRelativeMode(true)
InputEditText = GUI:AddEditText(0, 0.1, ScreenSizeX, 0.1, "")
InputEditText:SetEnabled(false)
InputEditText:SetNumericOnly(true)
Digits = {}
Digit = {}
rr = 0 bb = 255
for i = 1,ScreenSizeY do
rr = rr + (255/ScreenSizeY)
bb = bb - (255/ScreenSizeY)
Screen:DrawRect(0,i,ScreenSizeY,1,Color:rgb(rr,250,bb))
end
Digits[0] = GUI:AddButton(0, 0.2, 0.25, 0.20, "0")
Digits[1] = GUI:AddButton(0, 0.4, 0.25, 0.20, "1")
Digits[2] = GUI:AddButton(0.25, 0.4, 0.25, 0.20, "2")
Digits[3] = GUI:AddButton(0.50, 0.4, 0.25, 0.20, "3")
Digits[4] = GUI:AddButton(0, 0.6, 0.25, 0.20, "4")
Digits[5] = GUI:AddButton(0.25, 0.6, 0.25, 0.20, "5")
Digits[6] = GUI:AddButton(0.50, 0.6, 0.25, 0.20, "6")
Digits[7] = GUI:AddButton(0, 0.8, 0.25, 0.20, "7")
Digits[8] = GUI:AddButton(0.25, 0.8, 0.25, 0.20, "8")
Digits[9] = GUI:AddButton(0.50, 0.8, 0.25, 0.20, "9")
ClearButton = GUI:AddButton(0.25, 0.2, 0.25, 0.20, "CE")
EqualButton = GUI:AddButton(0.50, 0.2, 0.25, 0.20, "=")
CountButton = GUI:AddButton(0.9,0,0.1,0.07,"")
SumButton = GUI:AddButton(0.75, 0.2, 0.25, 0.20, "+")
SubButton = GUI:AddButton(0.75, 0.4, 0.25, 0.20, "-")
MulButton = GUI:AddButton(0.75, 0.6, 0.25, 0.20, "*")
DivButton = GUI:AddButton(0.75, 0.8, 0.25, 0.20, "/")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
function ClearAllDigits()
InputEditText:SetText("")
CountButton:SetText("")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
end
function CountFunc(v)
if InputEditText:GetText():len() > 0 then
if Mode:len() == 0 then
Mode = ""..v..""
CountButton:SetText(""..v.."")
TempValue = InputEditText:GetText()
InputEditText:SetText("")
NewValue = "0"
else
Equal()
end
end
end
function SumFunc()
CountFunc("+")
end
function SubFunc()
CountFunc("-")
end
function MulFunc()
CountFunc("*")
end
function DivFunc()
CountFunc("/")
end
function Equal()
if Mode:len() ~= 0 then
if Mode == "+" then
NewValue = tonumber(InputEditText:GetText())
FinalValue = tonumber(TempValue) + tonumber(NewValue)
InputEditText:SetText(""..FinalValue.."")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
elseif Mode == "-" then
NewValue = tonumber(InputEditText:GetText())
FinalValue = tonumber(TempValue) - tonumber(NewValue)
InputEditText:SetText(""..FinalValue.."")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
elseif Mode == "*" then
NewValue = tonumber(InputEditText:GetText())
FinalValue = tonumber(TempValue) * tonumber(NewValue)
InputEditText:SetText(""..FinalValue.."")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
elseif Mode == "/" then
NewValue = tonumber(InputEditText:GetText())
FinalValue = tonumber(TempValue) / tonumber(NewValue)
InputEditText:SetText(""..FinalValue.."")
TempValue = "0"
NewValue = "0"
FinalValue = "0"
Mode = ""
end
else
Mode = ""
CountButton:SetText("")
end
end
function AddDigit(v)
lastvalue = ""..tostring(InputEditText:GetText())..""
InputEditText:SetText(lastvalue..""..v)
end
for i = 0, 9 do
Digit[i] = function()
AddDigit(i)
end
end
for i = 0, 9 do
Digits[i]:AddEventHandler("OnTouchDown", Digit[i])
end
EqualButton:AddEventHandler("OnTouchDown", Equal)
SumButton:AddEventHandler("OnTouchDown", SumFunc)
SubButton:AddEventHandler("OnTouchDown", SubFunc)
MulButton:AddEventHandler("OnTouchDown", MulFunc)
DivButton:AddEventHandler("OnTouchDown", DivFunc)
ClearButton:AddEventHandler("OnTouchDown", ClearAllDigits)
CountButton:SetEnabled(false)
05.06.17 07:19:45 am
HOLA A TODOS!! Y HOLA @
DC: HIJO DE PUTA C==8
TENGO UNA IDEA QUE REVOLUCIONARA CS2D Y VA HACER QUE HAYA ALREDEDOR DE 1.000 Y 2.000 JUGADORES ONLINE TODOS LOS DIAS, LO PRIMERO QUE DEVEN HACER ES IR Y DECIRLES A SUS MADRES, "VIEJA CHOTA CHUPAME LA PIJA" AUTOMATICAMENTE TE VA A CAGAR A TROMPADAS Y A CASTIGAR, ENTONCES VAS A TENER TIEMPO DE JUGAR EN LA PC Y CONOCERAS CS2D, TE LA VAS A PASAY VICIANDO TODO EL DIA, Y LLEGARA UN DIA Y PENSARAS ¿PORQUE TENGO EL CULO ROTO? TE RESPONDERA TU MADRE QUE SI SEGUIS PENSANDO ESO TE VA A METER UN PALO POR EL CULO BIEN ADENTRO, LO SEGUNDO QUE DEVEN HACER ES IR A UN KIOSCO A ROBARLO, VIOLAR AL QUE ATIENDA EL KIOSCO Y CUANDO TERMINES DE ROBAR TE VAS A RUSSIA A JUGAR CON UN PING MUY BUENO, QUIERO DECIRLE A TODOS LO QUE LEAN ESTO, QUE SON UNA MANGA DE HIJOS DE PUTA QUE NO ME IMPORTA LO QUE HAGAN PORQUE SE PUEDEN METER UN PALO POR EL ANO Y JUGAR CS2D AL MISMO TIEMPO, SOY UN IDIOTA ESCRIBIENDO IDIOTECES Y USTED ES UN IDIOTA PORQUE ESTA LEYENDO ESTO Y PERDIENDO SU TIEMPO, MALDITO HIJO DE PUTA, PUEDER IRTE A LA MIERDA CONCHUDO NEGRO

TENGO UNA IDEA QUE REVOLUCIONARA CS2D Y VA HACER QUE HAYA ALREDEDOR DE 1.000 Y 2.000 JUGADORES ONLINE TODOS LOS DIAS, LO PRIMERO QUE DEVEN HACER ES IR Y DECIRLES A SUS MADRES, "VIEJA CHOTA CHUPAME LA PIJA" AUTOMATICAMENTE TE VA A CAGAR A TROMPADAS Y A CASTIGAR, ENTONCES VAS A TENER TIEMPO DE JUGAR EN LA PC Y CONOCERAS CS2D, TE LA VAS A PASAY VICIANDO TODO EL DIA, Y LLEGARA UN DIA Y PENSARAS ¿PORQUE TENGO EL CULO ROTO? TE RESPONDERA TU MADRE QUE SI SEGUIS PENSANDO ESO TE VA A METER UN PALO POR EL CULO BIEN ADENTRO, LO SEGUNDO QUE DEVEN HACER ES IR A UN KIOSCO A ROBARLO, VIOLAR AL QUE ATIENDA EL KIOSCO Y CUANDO TERMINES DE ROBAR TE VAS A RUSSIA A JUGAR CON UN PING MUY BUENO, QUIERO DECIRLE A TODOS LO QUE LEAN ESTO, QUE SON UNA MANGA DE HIJOS DE PUTA QUE NO ME IMPORTA LO QUE HAGAN PORQUE SE PUEDEN METER UN PALO POR EL ANO Y JUGAR CS2D AL MISMO TIEMPO, SOY UN IDIOTA ESCRIBIENDO IDIOTECES Y USTED ES UN IDIOTA PORQUE ESTA LEYENDO ESTO Y PERDIENDO SU TIEMPO, MALDITO HIJO DE PUTA, PUEDER IRTE A LA MIERDA CONCHUDO NEGRO
05.06.17 07:23:19 am
HOLA A TODOS!! Y HOLA @
DC: HIJO DE PUTA C==8
TENGO UNA IDEA QUE REVOLUCIONARA CS2D Y VA HACER QUE HAYA ALREDEDOR DE 1.000 Y 2.000 JUGADORES ONLINE TODOS LOS DIAS, LO PRIMERO QUE DEVEN HACER ES IR Y DECIRLES A SUS MADRES, "VIEJA CHOTA CHUPAME LA PIJA" AUTOMATICAMENTE TE VA A CAGAR A TROMPADAS Y A CASTIGAR, ENTONCES VAS A TENER TIEMPO DE JUGAR EN LA PC Y CONOCERAS CS2D, TE LA VAS A PASAY VICIANDO TODO EL DIA, Y LLEGARA UN DIA Y PENSARAS ¿PORQUE TENGO EL CULO ROTO? TE RESPONDERA TU MADRE QUE SI SEGUIS PENSANDO ESO TE VA A METER UN PALO POR EL CULO BIEN ADENTRO, LO SEGUNDO QUE DEVEN HACER ES IR A UN KIOSCO A ROBARLO, VIOLAR AL QUE ATIENDA EL KIOSCO Y CUANDO TERMINES DE ROBAR TE VAS A RUSSIA A JUGAR CON UN PING MUY BUENO, QUIERO DECIRLE A TODOS LO QUE LEAN ESTO, QUE SON UNA MANGA DE HIJOS DE PUTA QUE NO ME IMPORTA LO QUE HAGAN PORQUE SE PUEDEN METER UN PALO POR EL ANO Y JUGAR CS2D AL MISMO TIEMPO, SOY UN IDIOTA ESCRIBIENDO IDIOTECES Y USTED ES UN IDIOTA PORQUE ESTA LEYENDO ESTO Y PERDIENDO SU TIEMPO, MALDITO HIJO DE PUTA, PUEDER IRTE A LA MIERDA CONCHUDO NEGRO

TENGO UNA IDEA QUE REVOLUCIONARA CS2D Y VA HACER QUE HAYA ALREDEDOR DE 1.000 Y 2.000 JUGADORES ONLINE TODOS LOS DIAS, LO PRIMERO QUE DEVEN HACER ES IR Y DECIRLES A SUS MADRES, "VIEJA CHOTA CHUPAME LA PIJA" AUTOMATICAMENTE TE VA A CAGAR A TROMPADAS Y A CASTIGAR, ENTONCES VAS A TENER TIEMPO DE JUGAR EN LA PC Y CONOCERAS CS2D, TE LA VAS A PASAY VICIANDO TODO EL DIA, Y LLEGARA UN DIA Y PENSARAS ¿PORQUE TENGO EL CULO ROTO? TE RESPONDERA TU MADRE QUE SI SEGUIS PENSANDO ESO TE VA A METER UN PALO POR EL CULO BIEN ADENTRO, LO SEGUNDO QUE DEVEN HACER ES IR A UN KIOSCO A ROBARLO, VIOLAR AL QUE ATIENDA EL KIOSCO Y CUANDO TERMINES DE ROBAR TE VAS A RUSSIA A JUGAR CON UN PING MUY BUENO, QUIERO DECIRLE A TODOS LO QUE LEAN ESTO, QUE SON UNA MANGA DE HIJOS DE PUTA QUE NO ME IMPORTA LO QUE HAGAN PORQUE SE PUEDEN METER UN PALO POR EL ANO Y JUGAR CS2D AL MISMO TIEMPO, SOY UN IDIOTA ESCRIBIENDO IDIOTECES Y USTED ES UN IDIOTA PORQUE ESTA LEYENDO ESTO Y PERDIENDO SU TIEMPO, MALDITO HIJO DE PUTA, PUEDER IRTE A LA MIERDA CONCHUDO NEGRO
I want to add that white people are better than black people.
Admin/mod comment:


Also note that that is totally not a new idea, it's been around for years and years and Valve was not the first to think of it.
Shit your pants:
Outlast II Mod (29) | Create your UI faster: CS2D UI Framework



As I said already, a lot of people use it in Steam, so won't you think there'd be a lot of people who would be going to use that feature at here?
Give me one legit reason why it's useful here. You have an idea, sell it, don't expect people to just agree with you without discussing the why.

This discussion is over, my god.
You can't ask a question and then say "discussion over" - this isn't kindergarten, you're not 4 years old any more.

Give me one legit reason why it's useful here.
When the guy can't get the answer over and asks over and over again.

You can't ask a question and then say "discussion over" - this isn't kindergarten, you're not 4 years old any more.
Shit your pants:
Outlast II Mod (29) | Create your UI faster: CS2D UI Framework




Give me one legit reason why it's useful here.
When the guy can't get the answer over and asks over and over again.
Some random shitty text in italic which grammatically makes no sense oh wait this actually does fuck I'm doing it wrong but back to my point the reason I'm doing this is because it now looks like a quote so now I'm cool - IGN


You can't ask a question and then say "discussion over" - this isn't kindergarten, you're not 4 years old any more.
Here you go:
Quote:
Just because you can do something doesn't mean you should spend time doing it. Note that DC will still have to code all of this and I don't think he'd want to do things for Unreal Software unless absolutely necessary (or a really good idea - like the heart emoticon 10/10
one love no woman no cry).

Your turn! Surprise me.
@
Yates: Ok, my turn, yes
You're a kid, why? Because you think you and I are taunting to each other right now. But we are absolutely NOT! Get it?
I'm not going to use quotes in this post since they are not helping me against
Yates at all.

So maybe I can say now "this discussion is over" because I didn't ask anything this time, I answered HAHAHA! GET OUT, MATE!
Joking aside, let
DC say something about it.


I'm not going to use quotes in this post since they are not helping me against


So maybe I can say now "this discussion is over" because I didn't ask anything this time, I answered HAHAHA! GET OUT, MATE!
Joking aside, let

Shit your pants:
Outlast II Mod (29) | Create your UI faster: CS2D UI Framework


Ouch you're busting my nuts lad. Better stop before my feelings get hurt.

Because you think you and I are taunting to each other right now. But we are absolutely NOT! Get it?
Got it. Can I get an answer to my question now? (read on until the end)

I'm not going to use quotes in this post since they are not helping me against
Yates at all.

Git gut m8


So maybe I can say now "this discussion is over" because I didn't ask anything this time, I answered HAHAHA! GET OUT, MATE!
Can't do that, see:

Give me one legit reason why it's useful here. You have an idea, sell it, don't expect people to just agree with you without discussing the why.
Legit reason != "hurr durr because people use it"
Still need that legit reason. You're not convincing anyone right now.
@
Yates: These all went too long just because of your not understanding,
Yates.
People sometimes want the things that are nothing(useful, needed) but fun.
You can't see if you don't want to see the answer.
That idea, which people uses a lot in Steam, entered my mind and I wanted to share it here. However, you went too mad, who knows why.
I don't know why are we still posting in this thread.


Quote:
Looks like you miss this part of my old comment. Everything doesn't have to be really needed,
Yates. If there wasn't a

:ugly:
emoticon and if I'd have asked for this, you'd go and say like this over again.People sometimes want the things that are nothing(useful, needed) but fun.
You can't see if you don't want to see the answer.
That idea, which people uses a lot in Steam, entered my mind and I wanted to share it here. However, you went too mad, who knows why.
I don't know why are we still posting in this thread.
Shit your pants:
Outlast II Mod (29) | Create your UI faster: CS2D UI Framework


Let's agree to disagree.

Quote:
Looks like you miss this part of my old comment. Everything doesn't have to be really needed,
Yates. If there wasn't a

:ugly:
emoticon and if I'd have asked for this, you'd go and say like this over again.People sometimes want the things that are nothing(useful, needed) but fun.
And you can't see if you don't want to see the answer.
I read that, but how does "fun" apply onto profile posts? The

Key word: useful

That idea, which people uses a lot in Steam, entered my mind and I wanted to share it here. However, you went too mad, who knows why.
Ayy where did I go mad? You're implying things here. Sit down, lean back and think on it.

I read that, but how does "fun" apply onto profile posts?

Ayy where did I go mad?

Sit down, lean back and think on it.

Shit your pants:
Outlast II Mod (29) | Create your UI faster: CS2D UI Framework

