Witajcie, mam problem ze skryptem. Otóż chodzi o to, że chce podzielić pętle na każdego gracza, bo chcę przydzielić każdemu graczowi inną pozycje. Próbowałem zrobić to jak tabele, ale się nie udało. O to kod:
for k, thePlayers in ipairs(getElementsByType("player")) do
if (getElementData(thePlayers, "Atrakcje")=="Derby") then
outputChatBox("/derby wystartowało!", thePlayers)
outputDebugString("Values: " .. thePlayers[1] .. " i " .. thePlayers[2])
--startDerby(thePlayers[1], thePlayers[2])
end
end
PS
Mam nadzieje, że rozumiecie o co mi chodzi