Jump to content

help


golanu21

Recommended Posts

  
local donator = tonumber(data["donator"]) 
if tonumber(donator) >= 1  then -- check if they're a donator 
                exports['armor-structure']:changeProtectedElementDataEx(source, "pmblocked", pmblocked, false) 
                exports['armor-structure']:changeProtectedElementDataEx(source, "tognews", newsblocked, false) 
                exports['armor-structure']:changeProtectedElementDataEx(source, "disableAds", adblocked == 1, false) 
            else -- no donator, set default things 
                exports['armor-structure']:changeProtectedElementDataEx(source, "pmblocked", 0, false) 
                exports['armor-structure']:changeProtectedElementDataEx(source, "disableAds", false, false) 
                exports['armor-structure']:changeProtectedElementDataEx(source, "tognews", 0, false) 
            end 

3: attempt to compare number with nill

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...