Jump to content

MACIEKW89

Members
  • Posts

    117
  • Joined

  • Last visited

Everything posted by MACIEKW89

  1. 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ę
  2. W panelu logowania po rejestracji ustawia score na 1
  3. 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?
  4. Niedziała W debugu bad argument z getElementData 1 i score a boolean value
  5. Sprawdze...aa z money mam tak jak napisałeś bo mi to działa i nieużywam tego tostring...to ja zw
  6. 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
  7. 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
  8. How getscreen? I set the Rectangle under radar(minimap)....player see board on the radar or up... Edit. Score is everything Score: 0 why?
  9. 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 ??
  10. 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 )
  11. 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?
  12. Or server version problem? My server 1.3.1 .
  13. Oh...mybye hosting problem? Can I do it on DX? We can help me? 10 minutes i do it...
  14. First i type /refreshall next /debugscript 3 and /start gracz (because it is my resource). Nothing in debug. Please help...
  15. 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?
  16. 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.
  17. 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.
  18. Dzięki za rade...problem w tym, że się niepcham, a oni mnie przyjęli i kazali czekać na coś do roboty. Tak wogóle tematy powiny być zamykane.
  19. 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
×
×
  • Create New...