Wysłany: 2017-08-16, 20:01
Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
Sprawd? jak kolega napisa? czy dzia?a na jednym graczu je?eli jest kilku graczy
Wysłany: 2017-08-16, 20:01
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
Damian2511 , Przetestuj to si? dowiesz.
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018
Wysłany: 2017-08-16, 20:21
Hades.
Łiiiiiiiiii
Wiek: 22 Na forum: 4699 dni Posty: 372
Nick w MP: Hades
Piwa : 3214
Nie dzia?a to
local screenW , screenH = guiGetScreenSize ()
local wyswietl = false
local pobieranie = false
addEventHandler ( "onClientRender" , root , function()
if wyswietl == false and pobieranie == false then
dxDrawRectangle ( screenW * 0.3661 , screenH * 0.4210 , screenW * 0.2530 , screenH * 0.2057 , tocolor ( 95 , 95 , 95 , 255 ), true )
dxDrawText ( "Trwa ladowanie zasobow..." , screenW * 0.4339 , screenH * 0.4905 , screenW * 0.5411 , screenH * 0.5486 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "left" , "top" , false , false , true , false , false )
end
end )
addEventHandler ( "onClientFileDownloadComplete" , root , function()
if wyswietl == true and pobieranie == true then
wyswietl = false
pobieranie = true
end
end )
[ Dodano : 2017-08-17, 14:30 ]
@REF, nadal nie dzia?a ;/.
Wysłany: 2017-08-17, 23:15
Gpla
Loading...
Wiek: 26 Na forum: 3853 dni Posty: 84
Nick w MP: Loading...
Piwa : 174
Spr?buj tak
local screenW , screenH = guiGetScreenSize ()
wyswietl = false
pobieranie = false
function pobierz ()
if wyswietl == false and pobieranie == false then
dxDrawRectangle ( screenW * 0.3661 , screenH * 0.4210 , screenW * 0.2530 , screenH * 0.2057 , tocolor ( 95 , 95 , 95 , 255 ), true )
dxDrawText ( "Trwa ladowanie zasobow..." , screenW * 0.4339 , screenH * 0.4905 , screenW * 0.5411 , screenH * 0.5486 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "left" , "top" , false , false , true , false , false )
wyswietl = true
pobieranie = true
end
end
addEventHandler ( "onClientRender" , root , pobierz )
addEventHandler ( "onClientFileDownloadComplete" , root , function()
if wyswietl == true and pobieranie == false then
wyswietl = false
pobieranie = true
removeEventHandler ( "onClientRender" , root , pobierz )
end
end )
Wysłany: 2017-08-18, 12:30
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
Gpla , Co ty w og?le kombinujesz ...
local sx , sy = guiGetScreenSize ()
local wyswietlanie = false
local pobieranie = false
function funkcja ()
if wyswietlanie == false and not pobieranie == true then
dxDrawRectangle ( sx * 0.3661 , sy * 0.4210 , sx * 0.2530 , sy * 0.2057 , tocolor ( 95 , 95 , 95 , 255 ), true )
dxDrawText ( "Trwa ladowanie zasobow..." , sx * 0.4339 , sy * 0.4905 , sx * 0.5411 , sy * 0.5486 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "left" , "top" , false , false , true , false , false )
wyswietlanie = true
end
end
addEventHandler ( "onClientRender" , root , funkcja )
addEventHandler ( "onClientFileDownloadComplete" , root , function()
if wyswietlanie == true then
wyswietlanie = false
pobieranie = true
removeEventHandler ( "onClientRender" , root , funkcja )
end
end )
Spr?buj tak..
Wysłany: 2017-08-18, 18:30
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
_Mike , dlaczego wprowadzasz w b??d? zreszt? wszyscy wprowadzacie tutaj w b??d, Kod: This event is triggered when a file has been downloaded after downloadFile has been successfully called.
Aby w/w zdarzenie si? wykona?o czyli trzeba u?y? . Wszyscy kopiuj? z wiki na pa?? nie czytaj?c w og?le opisu a potem "omg dlaczego nie dzia?a, przecie? robi? dobrze"
Tagi: skrypt :: pobieranie :: zasobów
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: