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

Wysłany: 2016-03-27, 23:45


Olusia

Jestem Zła






Wiek: 28
Na forum: 4901 dni
Posty: 57
Nick w MP: Olusia

Piwa: 10

Respekt: 50

Hej, mam problem z b??dem w konsoli. Tutaj b??d

Kod:

WARNING: rpg\server.lua:19: Bad argument @ 'getElementType' [Expected element at argument 1, got nil]



A tutaj kawa?ek skryptu w kt?rym znajduje si? ten b??d:

Kod:

function OnPlayerJoin()
fadeCamera(source, true)
createBlipAttachedTo(source, 0, 2, 255, 255, 255)
outputChatBox("Witaj na serwerze [Nazwa serwera]!", source, 255, 255, 255, true)
spawnPlayer(source, -2031.4154, 174.5885, 28.8359, nil, 0, 0, 1)
setCameraMatrix( source, -1997.4337158203, 200.27589416504, 51.115345001221, -2015.9968261719, 183.58070373535, 37.68424987793 )
end
addEventHandler("onPlayerJoin", getRootElement(), OnPlayerJoin)

function PlayerQuit()
local attached = getAttachedElements(source)
if (attached) then
for k,v in ipairs(attached) do
if getElementType(v) == "blip" then
destroyElement(v)
end
end
end
end
addEventHandler("onPlayerQuit", getRootElement(), PlayerQuit)


Podpis
Jesli ci pomoglam to daj Piwo :]
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-03-27, 23:49


CreamLDG







Wiek: 46
Na forum: 3837 dni
Posty: 17
Nick w MP: grifin

Piwa: 2

Respekt: 50

masz tutaj dobry zoba czy dzia?a


function OnPlayerJoin() 
fadeCamera(sourcetruecreateBlipAttachedTo(source02255255255outputChatBox("Witaj na serwerze [Nazwa serwera]!"source255255255truespawnPlayer(source, -2031.4154174.588528.8359nil001setCameraMatrixsource, -1997.4337158203200.2758941650451.115345001221, -2015.9968261719183.5807037353537.68424987793 end 
addEventHandler("onPlayerJoin"getRootElement(), OnPlayerJoin) 

function PlayerQuit() 
local attached getAttachedElements(source) 
if (attachedthen 
for k,v in ipairs(attached) do 
if getElementType(v) == "blip" then 
destroyElement(vend 
end 
end 
addEventHandler("onPlayerQuit"getRootElement(), PlayerQuit)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-03-27, 23:58


Olusia

Jestem Zła






Wiek: 28
Na forum: 4901 dni
Posty: 57
Nick w MP: Olusia

Piwa: 10

Respekt: 50

"CreamLDG" napisał/a:

masz tutaj dobry zoba czy dzia?a


function OnPlayerJoin() 
fadeCamera(sourcetruecreateBlipAttachedTo(source02255255255outputChatBox("Witaj na serwerze [Nazwa serwera]!"source255255255truespawnPlayer(source, -2031.4154174.588528.8359nil001setCameraMatrixsource, -1997.4337158203200.2758941650451.115345001221, -2015.9968261719183.5807037353537.68424987793 end 
addEventHandler("onPlayerJoin"getRootElement(), OnPlayerJoin) 

function PlayerQuit() 
local attached getAttachedElements(source) 
if (attachedthen 
for k,v in ipairs(attached) do 
if getElementType(v) == "blip" then 
destroyElement(vend 
end 
end 
addEventHandler("onPlayerQuit"getRootElement(), PlayerQuit)



Tak dzia?a. Dzi?kuje

Podpis
Jesli ci pomoglam to daj Piwo :]
Postaw piwo autorowi tego posta
 

 
Tagi: warning :: konsoli :: serwera
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » warning w konsoli serwera 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