Witajcie przegl?dam forum i natkn??em si? na jeden temat link https://gtao.pl/optymalizacja-kodu-vt119997.htm
i moje zapytanie jest to co napisa? PolskiSebek12 podpunkt 7. Nie u?ywaj setElementData i getElementData.
Jak go mam rozumie?? jaki zamiennik niby za to jest?
Dane zapisane w tabeli po stronie serwera, to te dane s? przechowywane dopo?ki nie zresetujesz skryptu np.
local tabela = {}
for i,v in ipairs = getElementsByType("player") do
if tabela[index].(dany klucz) == "klucz" then
outputChatBox("Klucz")
end
end
--- przyklad z wiki
local players = getElementsByType ( "player" ) -- get a table of all the players in the server
for theKey,thePlayer in ipairs(players) do -- use a generic for loop to step through each player
if ( isPlayerInVehicle ( thePlayer ) ) then -- if the player is in a vehicle, announce it
outputChatBox ( getPlayerName ( thePlayer ) .. " is in a vehicle" )
else -- if the player isn't in a vehicle, announce that he/she is on foot
outputChatBox ( getPlayerName ( thePlayer ) .. " is on foot" )
end
end
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