Witam mam do was pro?b? m?g?by kto? sprawdzi? czy dobrze napisany jest ten skrypt bo co? mi nie dzia?a jak chc? stworzy? organizacj? co do bazy danych to mam wszystko podpi?te tabela i kolumny pod skrypt zrobione
tutaj macie skrypt:
addEvent('organization:create',true)
addEventHandler('organization:create',resourceRoot,function(name)
local check = exports['pystories-db']:dbGet('select * from ms_organizacje where code=?',name)
if check[1] then outputChatBox('Podana nazwa organizacji jest ju? zaj?ta!',client) return end
if string.len(name) < 3 then outputChatBox('Nazwa organizacji jest zbyt kr?tka.',client) return end
local create = exports['pystories-db']:dbSet('insert into ms_organizacje (code, login, uid, actived, rank) values(?,?,?,now(),4)',tostring(name),getElementData(client,'player:nickname'),getElementData(client,'player:sid'))
if create then
outputChatBox('Pomy?lnie stworzy?e? organizacj? o nazwie: '..name..'!',client)
setElementData(client,'player:organization',tostring(name))
takePlayerMoney(client,15000000)
else outputChatBox('Wyst?pi? b??d, zg?o? go administracji.',client) end
end)
Witam moim problemem jest skrypt zapisu/parkowania samochodu. Gdy pisz? komend? /zaparkuj w aucie frakcyjnym b?d? aucie nieposiadaj?cym rejestracji wszystko jest w porz?dku, lecz gdy pisze t? sam? komend? w aucie kt?re posiada ju? prawo jazdy to nie dzieje si? nic. Prosz? o pomoc nie mam poj?cia co jest ?le.
[code]
output = false
function getPlayerAccountID(login)
account = getAccount(tostring(login))
if account then
data = getAccountData(account,"ID-Player")
if data then
return data
else
return false
end
else
return false
end
end
function zapiszlog(string)
local file = fileOpen("logs.txt")
if not file then
file = fileCreate("logs.txt")
end
if (file) then
local time = getRealTime()
fileSetPos(file,fileGetSize(file))
local written = fileWrite(file,"rn",string.format("-- %02s/%02s/%04s %02s:%02sr : ",
tostring(time.monthday),
tostring(time.month + 1),
tostring(time.year + 1900),
tostring(time.hour),
tostring(time.minute)),
string,"rn")
fileFlush(file)
fileClose(file)
end
end
local panelvip = exports.panelvip
aaa =mysql_connect(get("mysql.host"), get("mysql.user"), get("mysql.pass"), get("mysql.db"), 3306)
if ( not aaa ) then
outputDebugString("Blad polaczenia!-Vehsaver")
end
function makeCaptcha(capNumz)
theC = ""
tCode = { "a",...
Siema. Mam pytanie a propo 2 serwer?w. Chodzi mi o serwery:
Polski serwer rpg - Serwer stworzyony dla graczy
MyWorldLife - Polski serwer rpg
Mianowicie poszukuj? ich gamemoda. Oba te serwery maj? ten sam gamemode i w?a?nie bardzo on mi si? podoba tylko ?e nie znam jego nazwy. Mog?by mi kto? poda? nazwe tego gamemoda a w jeszcze lepszym wypadku , nazwe i linka ? Nie jest to ?adna reklama. Je?li napisa?em w z?ym dziale albo da?em z?y tag to przepraszam.
Witam mam problem bo nie jestem za dobry w tym a chcialbym wiedziec jak dodac siebie do frakcji lub dac sobie range np.RCON, support,admin,moderator moglby ktos pomoc? tutaj napisac albo mozemy pogadac na mumble, ts3 jakby ktos chcial za pomoc daj? zimne piwko!
Witam m?g?by kto? mi zrobi? skrypt na m?j serwer roleplay . z komendami
/givemoney ilo?? (id) [(Daje kase(ale nie z kieszeni tylko ?e serwer daje)]
np . /givecar infernus (id)
(daje samoch?d osobie ma do niego kluczyki i pisze ?e np infernus nale?y do Henryka Kozackiego)