Witam mam problem, po zarejestrowaniu si? nowego gracz w bazie danych tworzy mu UID 0 i tak jest przy ka?dym nowym koncie, tak samo z pojazdami jest od zarypania pojazd?w o id 0 paczka to SaintRPG i wyskakuje to w konsoli [21-12-05 00] WARNING: [SaintRPG]/[database]/sr-db/s_db.lua:15: dbExec failed; (1062) Duplicate entry '0' for key 'PRIMARY'
Gifts.create = function()
for k, v in ipairs(Gifts.position) do
v.pickup = createPickup(v[1], v[2], v[3], 3, Gifts.settings.pickupID, 0)
if v[4] then setElementDimension(v.pickup, v[4]) end
setElementData(v.pickup, "gift:id", k)
addEventHandler("onPickupHit", v.pickup, Gifts.hitPickup)
end
end
Gifts.hitPickup = function(player)
if player.type == "player" and not player.vehicle then
local gifts = exports["pystories-db"]:dbGet("select prezenty from ec_prezenty where id = ?", getElementData(player, "player:sid"))
if not gifts[1] or not gifts[1].prezenty then _gifts = {} else _gifts = fromJSON(gifts[1].prezenty) end
if not table.find(_gifts, getElementData(source, "gift:id")) then
table.insert(_gifts, getElementData(source, "gift:id"))
else
outputChatBox("#ff0000??— #ffffffZebra?‚e?› juĹĽ ten prezent!", player, 63, 173, 168, true)
return
end
if not gifts[1] then
exports["pystories-db"]:dbSet("insert into ec_prezenty values(?...
[ Dodano: 2017-02-28, 18:32 ]
[2017-02-28 18] INFO: SELECT * FROM ogrpg_ban WHERE type="ban" AND active=1 AND serial="TUTAJ SERIAL ALE USUN??EM" AND time>NOW() LIMIT 1
Witam. Zacz??em pisa? kod na logowanie, wszystko ?adnie dzia?a? poza jednym: gdy wpisze sam login do edita i nacisn? button zaloguj to po prostu mnie zaloguje. Pom?g?by kto??
Hej
mam b??d w konsoli
[code][2013-11-15 21:02:38] WARNING: RPGRPG_S.lua:52: Access denied @ 'addAccount'
[2013-11-15 21:02:43] WARNING: RPGRPG_S.lua:52: Access denied @ 'addAccount'
[2013-11-15 21:02:49] WARNING: RPGRPG_S.lua:52: Access denied @ 'addAccount'[/code]
Kod skryptu
[code]setGameType("RPG by Olusia")
setMapName("RPG")
setRuleValue("Wersja", "1.1")
setRuleValue("Autor", "Olusia")
function OnPlayerJoin()
fadeCamera(source, true)
local Blip = createBlipAttachedTo ( source, 0,2,255,255,255 )
setElementData(source,"blip",Blip)
setCameraMatrix( source, -1997.4337158203, 200.27589416504, 51.115345001221, -2015.9968261719, 183.58070373535, 37.68424987793 )
end
addEventHandler("onPlayerJoin", getRootElement(), OnPlayerJoin)
function loginPlayer(username,password,enableKickPlayer,attemptedLogins,maxLoginAttempts,thePlayer)
if not (username == "") then
if not (password == "") then
local account = getAccount ( username, password )
if ( account ~= false ) then
logIn (source, account, password)
triggerClientEvent(source,"hideLoginWindow",getRootElement())
else
if enableKickPlayer == true then
if (attemptedLogins >= maxLoginAttempts-1) then
outputChatBox ("#0000FF* #FFFFFFBlad! Podales zly Login lub Haslo!",source,255,255,255,true)
setTimer(outputChatBox,500,1,"#0000FF* #FFFFFFUwag...
[11:44] Script[gamemodes/PET.amx]: Run time error 19: "File or function is not found"
[11:44] Number of vehicle models: 0[/code]
Niewiecie dlaczego? Pluginy mam chyba dobre.. Wszystko dotychczas mi dzia?a?o.. Jakie? DM'y czy GF'y.. Mo?e to by? problem , ?e niemam ScriptFiles? Czyy??
Witam! Mam taki problem. Zrobi?em wybiera?k?, doda?em auta, ale mam b??d. Wszystkie kordy normalnie poda?em < X,Y,Z,rX,rY,rZ >, a i tak wszystko 'patrzy' mi w 1 stron?. Po prostu mam pojazdy,np. rZ: 90 a i tak jest na 0. I identycznie ze skinami.