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

Wysłany: 2016-06-30, 19:00


GamerHD11







Wiek: 24
Na forum: 4261 dni
Posty: 259
Nick w MP: SzokoHD

Piwa: 23

Respekt: 50

Witam mam pewien problem. W moim skrypcie z sklepem z ubraniami podczas zakupu ich nic si? nie dziej? a powinno da? ubranie graczowi. Nie ma nic w Debug Script 3.

function koszulki()
wybor guiGridListGetItemText gridguiGridListGetSelectedItem grid ), )
if wybor == "Koszulka I Love LS" then
addPedClothes(localPlayer"tshirtilovels""tshirt"5)
elseif wybor == "Koszulka Homies" then
addPedClothes(localPlayer"tshirtblunts""tshirt"6)
elseif wybor == "Koszulka Grill Boy" then
addPedClothes(localPlayer"shirtbplaid""shirtb"7)
elseif wybor == "Koszulka Gangsta Bitch" then
addPedClothes(localPlayer"bballjackrstar""bbjack"14)
elseif wybor == "Koszulka Ebis" then
addPedClothes(localPlayer"tshirterisyell""tshirt"10)
end
end
addEventHandler("onClientGUIClick"zakupkoszulki)


for 1do
    guiGridListAddRow(grid)
end
guiGridListSetItemText(grid01"Koszulka I Love LS"falsefalse)
guiGridListSetItemText(grid02"30 $"falsefalse)
guiGridListSetItemText(grid11"Koszulka Homies"falsefalse)
guiGridListSetItemText(grid12"37 $"falsefalse)
guiGridListSetItemText(grid21"Koszulka Grill Boy"falsefalse)
guiGridListSetItemText(grid22"45$"falsefalse)
guiGridListSetItemText(grid31"Koszulka Gangsta Bitch"falsefalse)
guiGridListSetItemText(grid32"51 $"falsefalse)
guiGridListSetItemText(grid41"Koszulka Ebis"falsefalse)
guiGridListSetItemText(grid42"60 $"falsefalse)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-01, 22:58


eject

kurdebele






Wiek: 30
Na forum: 3659 dni
Posty: 182
Nick w MP: EjecT

Piwa: 2456

Respekt: 85,8

Ostrzeżeń: 60%
function koszulki(localPlayer) -- Tutaj zapomnia?edaargumentu gracza
wybor guiGridListGetItemText gridguiGridListGetSelectedItem grid ), )
if wybor == "Koszulka I Love LS" then
addPedClothes(localPlayer"tshirtilovels""tshirt"5)
elseif wybor == "Koszulka Homies" then
addPedClothes(localPlayer"tshirtblunts""tshirt"6)
elseif wybor == "Koszulka Grill Boy" then
addPedClothes(localPlayer"shirtbplaid""shirtb"7)
elseif wybor == "Koszulka Gangsta Bitch" then
addPedClothes(localPlayer"bballjackrstar""bbjack"14)
elseif wybor == "Koszulka Ebis" then
addPedClothes(localPlayer"tshirterisyell""tshirt"10)
end
end
addEventHandler("onClientGUIClick"zakupkoszulki)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-01, 23:30


GabWas







Wiek: 24
Na forum: 3881 dni
Posty: 289
Nick w MP: GabWas

Piwa: 65

Respekt: 231,5
Respekt: 231,5Respekt: 231,5

"eject" napisał/a:

function koszulki(localPlayer) -- Tutaj zapomnia?edaargumentu gracza
wybor guiGridListGetItemText gridguiGridListGetSelectedItem grid ), )
if wybor == "Koszulka I Love LS" then
addPedClothes(localPlayer"tshirtilovels""tshirt"5)
elseif wybor == "Koszulka Homies" then
addPedClothes(localPlayer"tshirtblunts""tshirt"6)
elseif wybor == "Koszulka Grill Boy" then
addPedClothes(localPlayer"shirtbplaid""shirtb"7)
elseif wybor == "Koszulka Gangsta Bitch" then
addPedClothes(localPlayer"bballjackrstar""bbjack"14)
elseif wybor == "Koszulka Ebis" then
addPedClothes(localPlayer"tshirterisyell""tshirt"10)
end
end
addEventHandler("onClientGUIClick"zakupkoszulki)


Nie wprowadzaj go w b??d. Najpierw zapoznaj si? z Wiki MTA, a potem poprawiaj:

Więcej informacji znajdziesz w Wikipedii MTA:

onClientGUIClick

Jak mo?esz zauwa?y?, pierwszy argument w funkcji to nie gracz ("player"), tylko "button".

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-02, 08:32


GamerHD11







Wiek: 24
Na forum: 4261 dni
Posty: 259
Nick w MP: SzokoHD

Piwa: 23

Respekt: 50

Czyli w nawiasach mam wpisa? zakup ?

Postaw piwo autorowi tego posta
 

 
Tagi: dodawanie :: ubrań
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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