Jump to content

SEBA18293

Members
  • Posts

    11
  • Joined

  • Last visited

About SEBA18293

  • Birthday 08/09/1999

Details

  • Location
    Poland, Bolesławiec

SEBA18293's Achievements

Square

Square (6/54)

0

Reputation

  1. Jak dopisałem na samej górze, czyli tutaj: outputChatBox("Test skryptu") mysql = exports.mysql Przy wpisaniu w konsoli 'refresh' a potem 'restart Frakcje' wyskakuje na chacie 'Test skryptu'
  2. Witajcie, dzisiaj utworzyłem pewną funkcje i coś nie działa: mysql = exports.mysql function getPlayerFactionID(player) zatrudnienie = mysql:query("SELECT * FROM Frakcja_zatrudnienie WHERE KontoID='" .. getElementData(player, "KontoID") .. "'") if (mysql:num_rows(zatrudnienie)>0) then zatrudnienieDane = mysql:fetch_assoc(zatrudnienie) frakcjaID = zatrudnienieDane["FrakcjaID"] return frakcjaID else return false end end addCommandHandler("test", function(player, cmd) frakcja = getPlayerFactionID(player) outputDebugString(tostring(frakcja)) end ) I tak, wpisuje /test i nic się nie dzieje i nic nie wyskakuje na chacie/konsoli/debugu. Nie jestem pewny czy w ogóle skrypt działa ;( Ale jak by nie działał to też by coś wyświetliło
  3. Zamieniłem to na local gameTime = getTickCount() local gameTimeS = math.floor(gameTime/1000) playerGameTime = math.floor(gameTimeS/60+1) i teraz zaczyna od 5-10
  4. A to i, co tam widzę thePlayers[1] to to jest jakaś zmienna czy ja mam tu coś podstawić ??
  5. Witajcie, gdy zrobiłem krótki skrypt na czas gry, to gdy wejdzie gracz na serwer, zaloguje się, wybierze skin, ustawia mu czas gry na 10-20 minut zamiast na 0. O to kod: czasGry = getTickCount() local gameTime = czasGry+getTickCount() local gameTimeS = math.floor(gameTime/1000) playerGameTime = math.floor(gameTimeS/60+1)
  6. Witajcie, mam problem ze skryptem. Otóż chodzi o to, że chce podzielić pętle na każdego gracza, bo chcę przydzielić każdemu graczowi inną pozycje. Próbowałem zrobić to jak tabele, ale się nie udało. O to kod: for k, thePlayers in ipairs(getElementsByType("player")) do if (getElementData(thePlayers, "Atrakcje")=="Derby") then outputChatBox("/derby wystartowało!", thePlayers) outputDebugString("Values: " .. thePlayers[1] .. " i " .. thePlayers[2]) --startDerby(thePlayers[1], thePlayers[2]) end end PS Mam nadzieje, że rozumiecie o co mi chodzi
  7. Thanks you EDIT: How to edit this code ?
  8. What design ? I mean the game menu of MTA:SA.
  9. Welcome guys How to edit menu in Multi Theft Auto San Andreas ?
×
×
  • Create New...