Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-04-06, 22:34


xXBlasterXx







Wiek: 40
Na forum: 5172 dni
Posty: 11



Respekt: 50

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!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-07, 00:09


Piorun







Wiek: 32
Na forum: 6712 dni
Posty: 1837
Nick w MP: Piorun

Piwa: 516

Respekt: 480,7
Respekt: 480,7

Paradise?
Podpi?te pod MySQL?

Podpis
Możesz mnie znaleźć na: Facebook
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-07, 00:47


xXBlasterXx







Wiek: 40
Na forum: 5172 dni
Posty: 11



Respekt: 50

Nie paradise, jaki? inny RP. Tak, podpi?ty pod mySQL.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-07, 11:49


Piorun







Wiek: 32
Na forum: 6712 dni
Posty: 1837
Nick w MP: Piorun

Piwa: 516

Respekt: 480,7
Respekt: 480,7

Sprawd? czy w og?le skrypt zainicjowa? po??czenie z MySQL, bo wg. mnie tu le?y problem.

Podpis
Możesz mnie znaleźć na: Facebook
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-07, 14:19


xXBlasterXx







Wiek: 40
Na forum: 5172 dni
Posty: 11



Respekt: 50

"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.

Postaw piwo autorowi tego posta
 

 
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

Respekt: 212,3
Respekt: 212,3Respekt: 212,3

xXBlasterXx, a tworzy tabele w bazie danych?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-07, 15:29


xXBlasterXx







Wiek: 40
Na forum: 5172 dni
Posty: 11



Respekt: 50

"Jacob" napisał/a:

xXBlasterXx, a tworzy tabele w bazie danych?


Tworzy.

Postaw piwo autorowi tego posta
 

 
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

Respekt: 212,3
Respekt: 212,3Respekt: 212,3

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?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-08, 14:57


xXBlasterXx







Wiek: 40
Na forum: 5172 dni
Posty: 11



Respekt: 50

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)


Postaw piwo autorowi tego posta
 

 
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

Respekt: 212,3
Respekt: 212,3Respekt: 212,3

xXBlasterXx, daj kod funkcji z linijki 310. Bez kodu nic nie zdzia?amy.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-08, 19:02


xXBlasterXx







Wiek: 40
Na forum: 5172 dni
Posty: 11



Respekt: 50

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")


Postaw piwo autorowi tego posta
 

 
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

Respekt: 212,3
Respekt: 212,3Respekt: 212,3

xXBlasterXx, spr?buj zamieni?
Kod:

getRootElement()

na
Kod:

source

Nie wiem czy zadzia?a.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-08, 19:15


xXBlasterXx







Wiek: 40
Na forum: 5172 dni
Posty: 11



Respekt: 50

Nadal to samo.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-08, 22:13


Piorun







Wiek: 32
Na forum: 6712 dni
Posty: 1837
Nick w MP: Piorun

Piwa: 516

Respekt: 480,7
Respekt: 480,7

Jest to podpi?te pod jakie? zdarzenie?

Podpis
Możesz mnie znaleźć na: Facebook
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-09, 00:51


xXBlasterXx







Wiek: 40
Na forum: 5172 dni
Posty: 11



Respekt: 50

Kod:

addEvent("onCharacterLogin", false)
addEvent("spawnCharacter", true)
addEventHandler("spawnCharacter", getRootElement(), spawnCharacter)


Postaw piwo autorowi tego posta
 

 
Tagi: skrypty :: błędy
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Skrypty i błędy Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku