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

Wysłany: 2018-11-17, 12:59


GrzybcioPL00

Uczeń LUA Pomagacz






Wiek: 23
Na forum: 3499 dni
Posty: 97
Nick w MP: Siwexx

Piwa: 17

Respekt: 50

Cze??! To znowu ja, ogarniam sobie serwer, blokuje jetpack warp itd. w mecie a tu nagle b??d i nie moge zablokowa? tego bo jak to zablokuje to nie mog? bra? broni w F1 b??d w konsoli jest taki :
Kod:

[18-11-17 12:51] ERROR: freeroam/util_server.lua:35: bad argument #1 to 'pairs' (table expected, got number)
A kod mety jest napewno dobry
<meta>
    <!-- arc_'s Freeroam script                                                  -->

    <!-- You are allowed to modify this resource or add functionality to it.     -->
    <!-- You may use the modified resource in your server and redistribute it.   -->
    <!-- However, the original credits and this license must always stay intact. -->
    <!-- Also, give your modified resource a different name, like "<yournick>'s  -->
    <!-- extended freeroam", to avoid confusion for users.                       -->

    <oop>true</oop>
    <info name="Freeroam GUI" author="arc_" version="1.5.5" type="gamemode"/>

    <script src="util_server.lua" type="server" />
    <script src="fr_server.lua" type="server" />

    <script src="util.lua" type="client" />
    <script src="gui.lua" type="client" />
    <script src="fr_client.lua" type="client" />

    <export function="appendControl" type="client" />

    <file src="colorselect.png" />
    <file src="localplayerblip.png" />
    <file src="map.png" />
    <file src="playerblip.png" />

    <config src="animations.xml" type="client" />
    <config src="interiors.xml" type="client" />
    <config src="skins.xml" type="client" />
    <config src="stats.xml" type="client" />
    <config src="vehicles.xml" type="client" />
    <config src="weapons.xml" type="client" />
    <config src="weather.xml" type="client" />
    <config src="help.xml" type="client" />

    <script src="colorpicker/colorpicker.lua" type="client" />
    <file src="colorpicker/palette.png" />
    <file src="colorpicker/alpha.png" />

    <settings>
        <!-- Set any of the "true" options to "false" to disable that functionality.                   -->
        <!-- If you modify this file you need to /refresh your server for the changes to take effect   -->
        <!-- (this will restart freeroam and therefore delete all vehicles that players created).      -->
        <!-- Use the runcode resource and the set() function to change a setting while freeroam        -->
        <!-- is running without having to refresh.                                                     -->


        <setting name="*spawnmaponstart" value="true" />
        <setting name="*spawnmapondeath" value="false" />
        <setting name="*welcometextonstart" value="true"
                    friendlyname="Welcome text on start"
                    accept="true,false"
                    group="Misc"/>
        <setting name="*removeHex" value="false"
                    friendlyname="Remove HEX Codes"
                    accept="true,false"
                    group="Misc"
                    desc="Setting this to true will remove all HEX codes from players' nick when displayed."
                    />
        <setting name="*alpha" value="false" />
        <setting name="*anim" value="true" />
        <setting name="*clothes" value="true" />
        <setting name="*createvehicle" value="true" />
        <setting name="*gamespeed/enabled" value="true" />
        <setting name="*gamespeed/min" value="[0.2]" />
        <setting name="*gamespeed/max" value="[3.0]" />
        <setting name="*gravity/enabled" value="true" />
        <setting name="*gravity/min" value="[0]" />
        <setting name="*gravity/max" value="[0.1]" />
        <setting name="*jetpack" value="false" />
        <setting name="*kill" value="true" />
        <setting name="*lights" value="true" />
        <setting name="*paintjob" value="true" />
        <setting name="*repair" value="true" />
        <setting name="*setskin" value="true" />
        <setting name="*setstyle" value="true" />
        <setting name="*stats" value="true" />
        <setting name="*upgrades" value="true" />
        <setting name="*warp" value="false" />
        <setting name="*weapons/enabled" value="true" />          <!-- Can players give themselves weapons? -->
        <setting name="*weapons/vehiclesenabled" value="true" />  <!-- Can players fire vehicle weapons? -->
        <setting name="*weapons/disallowed" value="[38]" />     <!-- Comma-separated list of specific weapon ID's that players are not allowed to give to themselves -->
        <setting name="*weapons/kniferestrictions" value="true" />     <!-- Stealth kills are restricted when warping and changing position for 5 seconds -->
        <setting name="*vehicles/maxidletime" value="[6546456456356]" />  <!-- Time in ms before a vehicle without passengers gets destroyed -->
        <setting name="*vehicles/idleexplode" value="true" />     <!-- If set to falsevehicles simply disappear when they time out instead of exploding -->
        <setting name="*vehicles/maxperplayer" value="[4]" />     <!-- Maximum number of vehicles a player can have at the same time -->
        <setting name="*vehicles/disallowed" value="[[432]]" />   <!-- Comma-separated list of vehicles that players may not create -->
        <setting name="*chat/mainChatDelay" value="1000" />   <!-- Miliseconds between each message a player can send through main chat -->
        <setting name="*chat/blockRepeatMessages" value="true" />   <!-- Prevent a player from saying the same thing twice in a row to spam -->
        <setting name="*gui/antiram" value="true" /> <!-- Allow player to use vehicle ghostmode (anti-ramfrom F1? -->
        <setting name="*gui/disablewarp" value="true" /> <!-- Allow player to prevent others warping to them from F1? -->
        <setting name="*gui/disableknife" value="true" /> <!-- Allow player to prevent themselves from getting knifekilled and vice versa (instakilled from behindfrom F1? -->
        <setting name="@command_spam_protection" value="true"
                    friendlyname="Command Spam Protection"
                    accept="true,false"
                    group="Command Spam Protection"
                    desc="This settings enables/disables protection against command spam that can form a type of DoS-attack capable of lagging or crashing the server"
                    />
        <setting name="@command_exception_commands" value="[ [ 'sp' ] ]"
                    friendlyname="Exception commands"
                    group="Command Spam Protection"
                    desc="Exception commands (to not filter with antispam detection)"
                    />
        <setting name="@tries_required_to_trigger" value="[5]"
                    friendlyname="Tries to trigger"
                    accept="positive number"
                    group="Command Spam Protection"
                    desc="How many tries under 2 seconds will trigger the spam protection?"
                    />
        <setting name="@tries_required_to_trigger_low_priority" value="[8]"
                    friendlyname="Tries to trigger - low priority"
                    accept="positive number"
                    group="Command Spam Protection"
                    desc="How many tries under 2 seconds will trigger the spam protection for low priority commands/actions such as giving ammo"
                    />
        <setting name="@command_spam_ban_duration" value="[10000]"
                    friendlyname="Suspend Duration"
                    accept="positive number"
                    group="Command Spam Protection"
                    desc="How many milliseconds will a global command ban last? (ignoring all calls from a spamming client)"
                    />
    </settings>
</meta>
Dzi?ki z g?ry za pomoc. Pozdrawiam!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-11-17, 13:25


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

Daj ca?y kod z,

Kod:

freeroam/util_server.lua:35


Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-11-17, 13:31


GrzybcioPL00

Uczeń LUA Pomagacz






Wiek: 23
Na forum: 3499 dni
Posty: 97
Nick w MP: Siwexx

Piwa: 17

Respekt: 50

https://pastebin.com/jFyvN6BV

[ Dodano: 2018-11-17, 13:49 ]
Do zamkni?cia, naprawi?em sam :mrgreen:

Podpis
”Zawsze pisz kod tak, jakby gość, który ma się nim zajmować był agresywnym psychopatą, który wie, gdzie mieszkasz” – Martin Golding
Postaw piwo autorowi tego posta
 

 
Tagi: meta.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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