Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: core
1. core Sid na Serwerze
Siema og?lnie zmieni?em core na ten z navaxy i nie wiem czemu ale gdy zmieni?em ten core to jak si? za?o?y konto to sid ustawia si? na 0 a na poprzednim core na 1. Przez to ?e zmieni?em core to m?j kolega nie mo?e si? zalogowa?.
2. OnPlayerWasted - core
Kod:

addEventHandler("onPlayerWasted", root, function()
plr=source
if getElementData(plr,"player:job") then
removeElementData(plr,"player:job")
end
setTimer(function()
local pos=getElementData(plr,"player:spawn")
if not pos then return end
fadeCamera(plr, true)
setElementInterior(plr,0)
setElementDimension(plr,0)
spawnPlayer(plr, pos[1], pos[2], pos[3])
setCameraTarget(plr, plr)
setElementModel(plr, getElementData(plr, "player:skin"))
end, 60, 1)
end)


Wszystko dzia?a poprawnie bez b??d?w w DB3, natomiast gdy >2 umrze od np. granatu ustawiaja si? skiny jednego z graczy(chyba ofiary) no i wrzuca attacker'a na speca, jak to poprawi??

EDIT 1.

Kod:


setTimer(function()
for i,v in ipairs(getElementsByType("player")) do
if not getElementData(v,"player:spawn") then return end
if isPedDead(v) then
local pos=getElementData(v,"player:spawn")
fadeCamera(v, true)
setElementInterior(v,0)
setElementDimension(v,0)
spawnPlayer(v, pos[1], pos[2], pos[3])
setCameraTarget(v, plr)
setElementModel(v, getElementData(plr, "player:skin"))
end
end
end, 10000, 0)


EDIT 3.

setCameraTarget(v, v)
setElementModel(v, getElementData(v, "player:skin"))

Tu rozwi?zanie dla ciekawskich, do zamkni?cia ;p
3. cos w core
Wywala mi b??d w core


Kod:

local noti = exports['mm_notifications'];
local core = {};

core.refreshTime = function()
if getElementData(localPlayer, 'user:uid') then
local minute = getElementData(localPlayer, 'user:hours');
TA LINIJKA -- minute['main'] = minute['main'] + 1
setElementData(localPlayer, 'user:hours', minute);
end
end
setTimer(core.refreshTime, 60000, 0);


core.premiumCash = 1000;
core.premiumTime = function()
if getElementData(localPlayer, 'user:uid') and getElementData(localPlayer, 'user:premium') then
noti:alert('success', 'Otrzyma?e?/a? '..core.premiumCash..' PLN za przegran? godzine gry z statusem premium.');
triggerServerEvent('premium:giveMoney', resourceRoot, core.premiumCash);
end
end
setTimer(core.premiumTime, 5000, 0);
4. CORE serwera MTA
Witam

domy?lam si?, ?e chodzi o CORE serwera.

Z g?ry powiem ?e nie chce gotowca.

Chc? edytowa? czat pod t, y, g??wna baze danych accounts ?eby mi zapisywa?o do MySQL a nie SQLite internal.db.

Czy jest jaki? spos?b szybki ?eby to zrobi? czy trzeba edytowa? ten core serwera a je?eli tak to w jaki spos?b

?opatologicznie napisane to i prosz? o ?opatologiczn? odpowied?,
jakie? tam poj?cie o MySQL i Lua mam ale jeszcze jestem w tym nowy.

Z g?ry dzi?kuje za wszelk? pomoc :)
5. Niedziałający core
Cze??, mam ma?y problem :/ komenda daj?ca premium wpisuje je w sql i nadaje premium lecz gracz po relogu tego premium nie dostaje i nie wczytuje core, kod od saveplayers.lua

function getPremium(plr,premium)
if premium then
local result=exports["rpg_mysql"]:dbGet("SELECT * FROM pystories_users WHERE id=? AND premium=?",getElementData(plr,"player:sid"), premium)
if result and #result > 0 then
return true
else
return false
end
else
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_users WHERE id=?", getElementData(plr,"player:sid"))
if result and #result > 0 then
return true
else
return false
end
end
end

Probowa?em zrobi? z DB2 z DB z pystories-db z rpg_mysql i nic :/ Nieczyta dalej :/ a wszystko jest ustawione Premiumdate jest na jakies 4 lata jest Premium na 1. Pomo?e kto? szybko ^^? Za najlepsz? porade postawie :piwo: hyh. :mrgreen: Odst?py s? zrobione dobrze tylko tutaj ?le wygl?daj? xD
6. core w pystories
Chc? w pystories core aby zamiast [1]Ni3Znany: tekst ; by?o 1 Ni3Znany tekst

if not level and not p_level then
Kod:

outputChatBox("#007b68"..getElementData(source,"id").."#FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","")..":#FFFFFF "..msg:gsub("#%x%x%x%x%x%x",""), v, _, _, _, true)


usun??em []
ale nie umiem zrobi? odst?pu mi?dzy id a nickiem gracza
7. Skrypt Core
witam, mam problem z skryptem pystories-core
gdy wgra?em go na serwer i chce si? zalogowa? zawiesza mi gre i wywala mnie na pulpit
:-?
ps: robilem reinstal GTA jak i MTA
8. core
robi? reconnect i takie co? jest napisane
[19-11-03 14:57] ERROR: [Podstawa]/pystories-core/s_base.lua:142: attempt to get length of local 'result' (a boolean value)
9. Core
Cze??! Mam pewien problem poniewa? nie wiem jak zabra? si? do napisania core na serwer. Nie mam zamiaru robi? copy & paste z jaki? paczek na necie.

Za pomoc daje :piwo: oraz R*
10. Core
Witam ot?? gdy pisz? co? na czacie nic nie wyskakuje b??d DB3

ogrpg-core/s_chats.lua:144/ attemp to concatenate a boolean value [DUP x2]

kod s_chats.lua

[lua]--[[
Resource: OURGame
Developers: Split <[email protected]>
Copyright <[email protected]> 2015-2016
You have no right to use this code without my permission.
]]

local settings = {
['swearFilter'] = {
['enabled'] = true,
['swears'] = { -- Allows you to set the blocked swear words, syntax is ['WORD'] = 'REPLACEMENT'
['k****'] = '****',
['cwel'] = '****',
['k****?'] = '****',
['c w e l'] = '****',
['k u r w a'] = '****',
['cwelem'] = '******',
['c w e l e m'] = '****',
['k u r w ?'] = '****',
['szmata'] = '****',
['dziwka'] = '****',
['*****'] = '****',
['jajebie'] = '****',
['j***e'] = '****',
['*****'] = '****',
['*****'] = '****',
['k****'] = '****',
['frajer'] = '****',
['frajerze'] = '****',
['*****'] = '****',
['ja *****'] = '****',
['*****'] = '****',
['*****'] = '****',
['c***'] = '****',
['szmato'] = '****',
['dziwko'] = '****',
['peda?'] = '****',
['pedal'] = '****',
['peda?y'] = '****',
['frjerzy'] = '****',
['frajerka'] = '****',
['p****'] = '****',
['p****'] = '****',
['p****'] = '****',
['s********j'] = '****',
['suka'] = '****',
['sukinsyn'] = '****',
['wyjebie'] = '****',
['*****'] = '****',
['wypierdalaj']...
11. Calm Life core
Witam, pod??czy?em mysql itd itd rejestruje si? konto idzie do mysql ale problem polega na tym, ?e nie moge si? za logowa? (Co? jest z lss-core?) prosz? o pomoc

http://gtao.pl/gm-calm-li...1,15.htm#777385
12. zmienilem core i nie dziala
jak zmienilem w powitaniu Nazwe serwera to juz nie dzialalo i wgl
Kod:

addEventHandler("onPlayerJoin", root, function()
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("", source)
outputChatBox("* Witaj, je?eli jeste? nowy/a na serwerze City Center to polecamy ci poradnik pod przyciskiem F1 :) ", source)
end)
13. Jak zrobic wlasne gui + core na serwer rpg
Witam bo chce zacz?? robi? serwer RPG ale nie wiem od czego ma zacz?? czy kto? pomorze mi ? poda przyk?ad jak zrobi? takie co? ?eby id by?o i te inne