MACIEKW89
Members-
Posts
117 -
Joined
-
Last visited
Everything posted by MACIEKW89
-
Belka na dole ekranu
MACIEKW89 replied to MACIEKW89's topic in Pomoc ze skryptami i programowaniem w Lua
To po stronie serwera może dlatego niedziala w belce? function Rejestruj_Server(gracz,username, password) local account = getAccount(username, password) if (account ~= false) then outputChatBox("Takie konto juz istnieje.",gracz,255,0,0) else account = addAccount(username, password) setElementData(gracz,"konto_login",username) givePlayerMoney( gracz, 5000 ) setAccountData(account,"cash",5000) setAccountData(account,"score",1) setElementData(gracz,"Score",1) outputChatBox("Pomyślnie zarejestrowano konto",gracz,255,20,255) outputChatBox("Witaj!Jesteś nowy?Przeczytaj informacje pod klawiszem 'F9'",gracz,true,255,20,255) end end addEvent("submitRegister",true) addEventHandler("submitRegister",getRootElement(),Rejestruj_Server) Reszty niedam bo się boję -
Belka na dole ekranu
MACIEKW89 replied to MACIEKW89's topic in Pomoc ze skryptami i programowaniem w Lua
W panelu logowania po rejestracji ustawia score na 1 -
Belka na dole ekranu
MACIEKW89 replied to MACIEKW89's topic in Pomoc ze skryptami i programowaniem w Lua
Jak to zmieniłem to została belka i Nick, score i kasa zniknęły. Potrzebuje też zrobić żeby każdy widział belkę tak jak ja...pomożesz? -
Belka na dole ekranu
MACIEKW89 replied to MACIEKW89's topic in Pomoc ze skryptami i programowaniem w Lua
Niedziała W debugu bad argument z getElementData 1 i score a boolean value -
Belka na dole ekranu
MACIEKW89 replied to MACIEKW89's topic in Pomoc ze skryptami i programowaniem w Lua
Sprawdze...aa z money mam tak jak napisałeś bo mi to działa i nieużywam tego tostring...to ja zw -
Belka na dole ekranu
MACIEKW89 replied to MACIEKW89's topic in Pomoc ze skryptami i programowaniem w Lua
Dobra dzięki Mefisto_PL . Zrobiłem w DX z pomocą Castillo belka się pojawia już zrobiłem żeby ustawiało nick bez color code i pieniądze ...niestety niedziała score cały czas jest 0. addEventHandler ( "onClientRender", root, function ( ) local it = getPlayerName ( localPlayer ):gsub ( "#%x%x%x%x%x%x", "" ) local score = tostring ( tonumber ( getElementData ( localplayer, "Score" ) ) or 0 ) local money = tostring ( getPlayerMoney ( ) ) dxDrawRectangle(0, 725, 1024, 43, tocolor(0, 155, 255, 160), true) dxDrawText("Nick:"..it, 90, 730, 362, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 90, 728, 362, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 88, 730, 360, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 88, 728, 360, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 89, 729, 361, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 367, 730, 639, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 367, 728, 639, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 365, 730, 637, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 365, 728, 637, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 366, 729, 638, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 643, 730, 915, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 643, 728, 915, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 641, 730, 913, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 641, 728, 913, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 642, 729, 914, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) end ) Castillo narazie nieodpisuje..pewnie niema czasu...pomożecie? Przepraszam za moje zachowanie...charakter po tatusiu -
I set the "Score" on my Login/Register panel....on player click Register(Rejestruj in polish) then the script setElementData "Score" 1.....IT IS ON SERVER SIDE.......on my script for board getElementData is on CLIENT SIDE ... mybye this is a problem? Or I don't know
-
How getscreen? I set the Rectangle under radar(minimap)....player see board on the radar or up... Edit. Score is everything Score: 0 why?
-
IT'S WORK!!!!! THANK YOU !!!! 3 Problem's: 1. How i can set nick without color code? 2. It set Score: False how repair it? 3. How i can get player screen beacause players can't see board like me ??
-
Ok I try...
-
It good? addEventHandler("onClientRender", root, function() local it = getPlayerName () dxDrawRectangle(0, 725, 1024, 43, tocolor(0, 155, 255, 160), true) dxDrawText("Nick:"..tostring(it)"", 90, 730, 362, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..tostring(it)"", 90, 728, 362, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..tostring(it)"", 88, 730, 360, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..tostring(it)"", 88, 728, 360, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..tostring(it)"", 89, 729, 361, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..getElementData(localplayer, "Score")"", 367, 730, 639, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..getElementData(localplayer, "Score")"", 367, 728, 639, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..getElementData(localplayer, "Score")"", 365, 730, 637, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..getElementData(localplayer, "Score")"", 365, 728, 637, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..getElementData(localplayer, "Score")"", 366, 729, 638, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..getPlayerMoney()"$", 643, 730, 915, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..getPlayerMoney()"$", 643, 728, 915, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..getPlayerMoney()"$", 641, 730, 913, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..getPlayerMoney()"$", 641, 728, 913, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..getPlayerMoney()"$", 642, 729, 914, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) end )
-
I have new.... on dx: addEventHandler("onClientRender", root, function() dxDrawRectangle(0, 725, 1024, 43, tocolor(0, 155, 255, 160), true) dxDrawText("Nick:", 90, 730, 362, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:", 90, 728, 362, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:", 88, 730, 360, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:", 88, 728, 360, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:", 89, 729, 361, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:", 367, 730, 639, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:", 367, 728, 639, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:", 365, 730, 637, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:", 365, 728, 637, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:", 366, 729, 638, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:", 643, 730, 915, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:", 643, 728, 915, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:", 641, 730, 913, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:", 641, 728, 913, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:", 642, 729, 914, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) end ) It is with outline... How can i do...get nick, score and money in it?
-
Resource what i have? Or new in DX?
-
Or server version problem? My server 1.3.1 .
-
Oh...mybye hosting problem? Can I do it on DX? We can help me? 10 minutes i do it...
-
First i type /refreshall next /debugscript 3 and /start gracz (because it is my resource). Nothing in debug. Please help...
-
nothing 0 errors
-
I do it. Not found. Can we help me?
-
Belka na dole ekranu
MACIEKW89 replied to MACIEKW89's topic in Pomoc ze skryptami i programowaniem w Lua
Wiem, że lagować będzie ale teraz niechce mi się już tego zmieniać...chyba, że pomożecie to to szybko zrobie w dx...to jak? -
What's wrong in meta file ?
-
Belka na dole ekranu
MACIEKW89 replied to MACIEKW89's topic in Pomoc ze skryptami i programowaniem w Lua
Będę się kłócił bo tak mi podał Castillo.... A dokładniej tak: addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) font = guiCreateFont ( "freshman.ttf", 12 ) Board = {} Nick = {} Score = {} Money = {} Board[1] = guiCreateStaticImage(0,0.9385,0.9992,0.0605,"belka_dolna.png",false) Nick[1] = guiCreateLabel(124,12,358,50,"",false,Board[1]) guiSetFont(Nick[1],font) Score[1] = guiCreateLabel(472,12,358,50,"",false,Board[1]) guiSetFont(Score[1],font) Money[1] = guiCreateLabel(802,12,477,50,"",false,Board[1]) guiSetFont(Money[1],font) addEventHandler ( "onClientRender", root, render ) end ) function render ( ) guiSetText ( Nick [ 1 ], "Nick: ".. getPlayerName ( localPlayer ) ) guiSetText ( Score [ 1 ], "Score: ".. tostring ( getElementData ( localPlayer, "Score" ) ) ) guiSetText ( Money [ 1 ], "Money: $".. getPlayerMoney ( ) ) end Dalej uważasz, że się rendera nieużywa w GUI? ... Ja mam głęboko w 4 literach co wy mi tu napiszecie... chcę tylko pomocy z tą belką. A żeby sprawdzał i co chwile ustawiał nick score i kase trzeba rendera. -
Why it not work on my server? Meta : <meta> <info author="MACIEKW89" version="1.0" type="script" name="Belka" description="Belka na dole ekranu....takie info o graczu..." /> <file src="belka_dolna.png" /> <file src="freshman.ttf" type="client" /> <script src="gracz_info_c.lua" type="client" /> </meta> It is in Polish.
-
Not found and 0 errors...
-
Not found.... 1 error in debug in line 10 : Nick[1] = guiCreateLabel(124,12,358,50,"Nick: "..tostring(player)"",false,Board[1]) DEBUG: attempt to call a string value
