Wysłany: 2012-04-06, 22:34
xXBlasterXx
Wiek: 40 Na forum: 5172 dni Posty: 11
Witajcie!
Mam wiele b??d?w w konsoli, wyskakuj?cych podczas testowania zasob?w, mogliby?cie mi pom?c je wyeliminowa??
Kod: [2012-04-06 22] WARNING: global\money_globals.lua:130: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean]
[2012-04-06 22] WARNING: global\money_globals.lua:134: Bad argument @ 'getElementType'
[2012-04-06 22] WARNING: global\money_globals.lua:130: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean]
[2012-04-06 22] ERROR: faction-system\s_faction_system.lua:1122: attempt to perform arithmetic on local 'rankWage' (a nil value)
[2012-04-06 22] WARNING: global\money_globals.lua:130: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean]
[2012-04-06 22] WARNING: global\money_globals.lua:134: Bad argument @ 'getElementType'
[2012-04-06 22] WARNING: global\money_globals.lua:130: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean]
[2012-04-06 22] ERROR: rpg-system\s_faction_system.lua:1108: attempt to perform arithmetic on local 'rankWage' (a nil value)
[2012-04-06 22] WARNING: legalsystem\wantedlevels.lua:77: Bad argument @ 'getPlayerTeam'
[2012-04-06 22] WARNING: legalsystem\wantedlevels.lua:77: Bad argument @ 'getTeamName'
[2012-04-06 22] ERROR: output\ser.lua:145: attempt to compare number with boolean
[2012-04-06 22] WARNING: legalsystem\wantedlevels.lua:77: Bad argument @ 'getPlayerTeam'
[2012-04-06 22] WARNING: legalsystem\wantedlevels.lua:77: Bad argument @ 'getTeamName'
[2012-04-06 22] ERROR: output\ser.lua:145: attempt to compare number with boolean
[2012-04-06 22] WARNING: item-system\ghettoblaster\s_ghettoblaster.lua:20: Bad argument @ 'getElementData' [Expected element at argument 1, got nil]
[2012-04-06 22] ERROR: item-system\ghettoblaster\s_ghettoblaster.lua:21: attempt to compare number with boolean
[2012-04-06 22] WARNING: item-system\ghettoblaster\s_ghettoblaster.lua:20: Bad argument @ 'getElementData' [Expected element at argument 1, got nil]
[2012-04-06 22] ERROR: item-system\ghettoblaster\s_ghettoblaster.lua:21: attempt to compare number with boolean
[2012-04-06 22] WARNING: item-system\ghettoblaster\s_ghettoblaster.lua:7: Bad argument @ 'getElementData' [Expected element at argument 1, got nil]
[2012-04-06 22] ERROR: item-system\ghettoblaster\s_ghettoblaster.lua:8: attempt to compare number with nil
[2012-04-06 22] WARNING: logs\s_logs.lua:72: fileOpen; unable to load file
[2012-04-06 22] WARNING: legalsystem\wantedlevels.lua:77: Bad argument @ 'getPlayerTeam'
[2012-04-06 22] WARNING: legalsystem\wantedlevels.lua:77: Bad argument @ 'getTeamName'
[2012-04-06 22] ERROR: output\ser.lua:145: attempt to compare number with boolean
[2012-04-06 22] WARNING: legalsystem\wantedlevels.lua:77: Bad argument @ 'getPlayerTeam'
[2012-04-06 22] WARNING: legalsystem\wantedlevels.lua:77: Bad argument @ 'getTeamName'
[2012-04-06 22] ERROR: output\ser.lua:145: attempt to compare number with boolean
[2012-04-06 22] WARNING: item-system\s_item_system.lua:934: Bad argument @ 'getElementData' [Expected element at argument 1]
[2012-04-06 22] ERROR: mysql\connection.lua:206: bad argument #2 to 'mysql_escape_string' (string expected, got boolean)
[2012-04-06 22] ERROR: mysql\connection.lua:206: bad argument #2 to 'mysql_escape_string' (string expected, got boolean)
[2012-04-06 22] ERROR: call: failed to call 'mysql:escape_string' [string "?"]
[2012-04-06 22] ERROR: item-system\s_item_system.lua:934: attempt to concatenate a boolean value
[2012-04-06 22] ERROR: doutput\ser.lua:45: attempt to concatenate local 'causeOfDeath' (a boolean value)
[2012-04-06 22] WARNING: realism-system\s_vehicle_crash.lua:62: Bad argument @ 'getElementData' [Expected element at argument 1, got number '0']
Z g?ry dzi?ki i pozdrawiam, xXBlasterXx!
Wysłany: 2012-04-07, 00:09
Piorun
Wiek: 32 Na forum: 6712 dni Posty: 1837
Nick w MP: Piorun
Piwa : 516
Paradise?
Podpi?te pod MySQL?
Wysłany: 2012-04-07, 00:47
xXBlasterXx
Wiek: 40 Na forum: 5172 dni Posty: 11
Nie paradise, jaki? inny RP. Tak, podpi?ty pod mySQL.
Wysłany: 2012-04-07, 11:49
Piorun
Wiek: 32 Na forum: 6712 dni Posty: 1837
Nick w MP: Piorun
Piwa : 516
Sprawd? czy w og?le skrypt zainicjowa? po??czenie z MySQL, bo wg. mnie tu le?y problem.
Wysłany: 2012-04-07, 14:19
xXBlasterXx
Wiek: 40 Na forum: 5172 dni Posty: 11
"Pioruniasty" napisał/a :Sprawd? czy w og?le skrypt zainicjowa? po??czenie z MySQL, bo wg. mnie tu le?y problem.
Raczej po??czy?, bo gra? mog?em, rejestrowa?, etc.
Wysłany: 2012-04-07, 14:20
Jacob
Głupiomądry
Wiek: 28 Na forum: 5502 dni Posty: 967
Nick w MP: Jacob
Piwa : 786
xXBlasterXx , a tworzy tabele w bazie danych?
Wysłany: 2012-04-07, 15:29
xXBlasterXx
Wiek: 40 Na forum: 5172 dni Posty: 11
"Jacob" napisał/a :xXBlasterXx , a tworzy tabele w bazie danych?
Tworzy.
Wysłany: 2012-04-07, 15:39
Jacob
Głupiomądry
Wiek: 28 Na forum: 5502 dni Posty: 967
Nick w MP: Jacob
Piwa : 786
Hmm... Po b??dach s?dz?, ?e wi?kszo?? nie mo?e odczyta? elementu bo dostaje co? innego. Moim zdaniem zepsuty skrypt. Jest on dost?pny publicznie?
Wysłany: 2012-04-08, 14:57
xXBlasterXx
Wiek: 40 Na forum: 5172 dni Posty: 11
Mam ju? czyste Sapphire i teraz nawet nie mog? pogra?. Gdy wchodz? na posta?, pojawia si? ona na lotnisku, nast?pnie ekran robi si? czarny i nic si? nie dzieje, a w konsoli taki b??d:
Kod: [2012-04-08 14:53] ERROR: account-system\s_account_system_sapphire.lua:310: attempt to concatenate local 'motd' (a boolean value)
Wysłany: 2012-04-08, 18:57
Jacob
Głupiomądry
Wiek: 28 Na forum: 5502 dni Posty: 967
Nick w MP: Jacob
Piwa : 786
xXBlasterXx , daj kod funkcji z linijki 310. Bez kodu nic nie zdzia?amy.
Wysłany: 2012-04-08, 19:02
xXBlasterXx
Wiek: 40 Na forum: 5172 dni Posty: 11
Kod: -- Load the character info
spawnPlayer(source, x, y, z, rot, skin)
setElementHealth(source, health)
setPedArmor(source, armor)
setElementDimension(source, dimension)
setElementInterior(source, interior, x, y, z)
setCameraInterior(source, interior)
local motd = getElementData(getRootElement(), "account:motd")
outputChatBox("MOTD: " .. motd, source, 255, 255, 0) <-----------------------310
if ((getElementData(source, "adminlevel") or 0) > 0) then
local amotd = getElementData(getRootElement(), "account:amotd")
outputChatBox("Admin MOTD: " .. amotd, source, 135, 206, 250)
end
local timer = getElementData(source, "pd.jailtimer")
if isTimer(timer) then
killTimer(timer)
end
exports['anticheat-system']:changeProtectedElementDataEx(source, "pd.jailserved")
exports['anticheat-system']:changeProtectedElementDataEx(source, "pd.jailtime")
exports['anticheat-system']:changeProtectedElementDataEx(source, "pd.jailtimer")
exports['anticheat-system']:changeProtectedElementDataEx(source, "pd.jailstation")
Wysłany: 2012-04-08, 19:10
Jacob
Głupiomądry
Wiek: 28 Na forum: 5502 dni Posty: 967
Nick w MP: Jacob
Piwa : 786
xXBlasterXx , spr?buj zamieni?
Kod:
na
Kod:
Nie wiem czy zadzia?a.
Wysłany: 2012-04-08, 19:15
xXBlasterXx
Wiek: 40 Na forum: 5172 dni Posty: 11
Wysłany: 2012-04-08, 22:13
Piorun
Wiek: 32 Na forum: 6712 dni Posty: 1837
Nick w MP: Piorun
Piwa : 516
Jest to podpi?te pod jakie? zdarzenie?
Wysłany: 2012-04-09, 00:51
xXBlasterXx
Wiek: 40 Na forum: 5172 dni Posty: 11
Kod: addEvent("onCharacterLogin", false)
addEvent("spawnCharacter", true)
addEventHandler("spawnCharacter", getRootElement(), spawnCharacter)
Tagi: skrypty :: błędy
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: