Wysłany: 2018-11-17, 00:08
Cfeluszek
Uczeń LUA
Wiek: 24 Na forum: 3460 dni Posty: 38
Nick w MP: R0B3RC1K
Piwa : 183
Witam, czy kto?by mi zrobi? skrypt / wyt?umaczy? jak zrobi? napis obok wersji mta przy prawym dolnym rogu?
W tym miejscu > https://imgur.com/a/YORuYOs
Wysłany: 2018-11-17, 00:10
Ciastuuś
Truck soon...
Wiek: 26 Na forum: 3071 dni Posty: 799
Nick w MP: Ciastuuś
Piwa : 4297
Po stronie clienta,
Version ={
m_string = '' ,
m_label = nil ,
}
local screenWidth , screenHeight = GuiElement . getScreenSize ()
function init ()
Version . m_string = 'TEKST OBOK WERSJI'
Version . m_label = guiCreateLabel ( screenWidth - 338 , screenHeight - 15 , 250 , 18 , Version . m_string .. '' , false )
guiSetAlpha ( Version . m_label , 0.5 )
guiLabelSetHorizontalAlign ( Version . m_label , 'right' )
end
init ()
function destroy ()
if Version . m_label then
Version . m_label : destroy ()
end
end
function setString ( version )
Version . m_string = version
guiSetText ( Version . m_label , version )
end
function getString ()
return Version . m_string
end
Wysłany: 2018-11-17, 00:21
Cfeluszek
Uczeń LUA
Wiek: 24 Na forum: 3460 dni Posty: 38
Nick w MP: R0B3RC1K
Piwa : 183
Powiesz mi jak zrobi? z tego skrypt? xD Jestem troche zielony i nie ogarniam za du?o...
Wysłany: 2018-11-17, 13:20
Ciastuuś
Truck soon...
Wiek: 26 Na forum: 3071 dni Posty: 799
Nick w MP: Ciastuuś
Piwa : 4297
Po pierwsze tworzysz plik o nazwie meta.xml z zawarto?ci?,
Kod:
<meta>
<oop>true</oop>
<script src="wersja.lua" type="client" />
</meta>
Po drugie tworzysz plik o nazwie wersja.lua z zawarto?ci?,
Version ={
m_string = '' ,
m_label = nil ,
}
local screenWidth , screenHeight = GuiElement . getScreenSize ()
function init ()
Version . m_string = 'Tekst'
Version . m_label = guiCreateLabel ( screenWidth - 338 , screenHeight - 15 , 250 , 18 , Version . m_string .. '' , false )
guiSetAlpha ( Version . m_label , 0.5 )
guiLabelSetHorizontalAlign ( Version . m_label , 'right' )
end
init ()
function destroy ()
if Version . m_label then
Version . m_label : destroy ()
end
end
function setString ( version )
Version . m_string = version
guiSetText ( Version . m_label , version )
end
function getString ()
return Version . m_string
end
W linijce 9,
Wpisujesz tekst jaki ma si? wy?wietla? obok wersji. Zast?p Tekst na Sw?j w?asny tekst. Licz? na piwko i reputacj? +
Więcej szczegółów
Wystawiono 2 piw(a):Cfeluszek , piotrek87411
Wysłany: 2018-11-17, 15:23
Cfeluszek
Uczeń LUA
Wiek: 24 Na forum: 3460 dni Posty: 38
Nick w MP: R0B3RC1K
Piwa : 183
Bardzo dzi?kuje za pomoc, mo?na LOCK
Tagi: napis :: przy :: wersji :: mta
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: