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

Wysłany: 2019-04-02, 06:35


Wilku8618

Modeler






Wiek: 23
Na forum: 3343 dni
Posty: 110
Nick w MP: Rusek

Piwa: 286

Respekt: 50

Ostrzeżeń: 40%
RROR: rpg_domy/s.lua:45: attempt to index field '?' (a nil value) to b??d



to gdzie? mo?e by? b??d ale nie wiem gdzie i oco chodzi co mam zrobi?



unction create_house(v)
local xyz = split(v.wejscie, ",")
local w = split(v.tpw, ",")
local id = 0
if v.owner == 0 then
id = 1273
owner = "Brak"
else
owner = v.owner_name
id = 1272
end
local p_wejscie = createPickup(xyz[1], xyz[2], xyz[3], 3, id, 0, 0)
local wejscieM = createMarker(xyz[1], xyz[2], xyz[3]-1, "cylinder", 1.2, 255, 0, 0, 0)
setElementData(wejscieM, "text", ""..v.name.."\nID: "..v.id.."\nW?a?ciciel: "..owner.."#ffffff\nCena: #33ff33"..v.cost.." PLN")

local wejscie = createColSphere(xyz[1], xyz[2], xyz[3], 1)
if v.lokator_1 ~= 0 then
local q1 = exports.rpg_mysql:mysql_query("select * from rpg_accounts where uid=?", v.lokator_1)
v.lokator_name1 = q1[1].username
end
if v.lokator_2 ~= 0 then
local q2 = exports.rpg_mysql:mysql_query("select * from rpg_accounts where uid=?", v.lokator_2)
v.lokator_name2 = q2[1].username
end
if v.lokator_3 ~= 0 then
local q3 = exports.rpg_mysql:mysql_query("select * from rpg_accounts where uid=?", v.lokator_3)
v.lokator_name3 = q3[1].username
end
if v.lokator_4 ~= 0 then
local q4 = exports.rpg_mysql:mysql_query("select * from rpg_accounts where uid=?", v.lokator_4)
v.lokator_name4 = q4[1].username
end
if v.lokator_5 ~= 0 then
local q5 = exports.rpg_mysql:mysql_query("select * from rpg_accounts where uid=?", v.lokator_5)
v.lokator_name5 = q5[1].username
end
if v.lokator_6 ~= 0 then
local q6 = exports.rpg_mysql:mysql_query("select * from rpg_accounts where uid=?", v.lokator_6)
v.lokator_name6 = q6[1].username
end
if v.lokator_7 ~= 0 then

Podpis
Tu powinien być podpis
Postaw piwo autorowi tego posta
 

 
Tagi: domeczki
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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