Core Forked (Core++?) (OBSOLETE)
#28
Thanks for the support guys!

Okay, I've hit a problem.

function OnPlayerPlacingBlock(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ, BlockType)
	-- Direction is air check
	if (BlockFace == -1) then
		return false
	end

	if( Player:HasPermission("core.build") == false ) then
		return true
	else
        if Player:HasPermission("core.spawnprotect.bypass") == false then
    	    local World = Player:GetWorld()
            local xcoord = World:GetSpawnX()
            local ycoord = World:GetSpawnY()
	        local zcoord = World:GetSpawnZ()

	        if not ((BlockX <= (xcoord + PROTECTRADIUS)) and (BlockX >= (xcoord - PROTECTRADIUS))) then
		        return false -- Not in spawn area.
	        end
	        if not ((BlockY <= (ycoord + PROTECTRADIUS)) and (BlockY >= (ycoord - PROTECTRADIUS))) then 
                return false -- Not in spawn area.
            end
	        if not ((BlockZ <= (zcoord + PROTECTRADIUS)) and (BlockZ >= (zcoord - PROTECTRADIUS))) then 
                return false -- Not in spawn area.
            end
		
	        WriteLog(0, X, Y, Z, Player:GetName(), id, meta)

	        if WARNPLAYER then
		        WarnPlayer(Player)
	        end

	        return true
        else
            if g_BlockIsSolid[BlockType] then -- ISSUE ISSUE
                local X = BlockX
                local Y = BlockY
                local Z = BlockZ
                X, Y, Z = AddFaceDirection(X, Y, Z, BlockFace)
	            if (Y >= 256 or Y < 0) then
            		return true
                end
... AND MORE

Log tells me: LUA: Plugins/Core/onbreakplaceblock.lua:36: attempt to index global 'g_BlockIsSolid' (a nil value).

Why?
Reply
Thanks given by:


Messages In This Thread
Core Forked (Core++?) (OBSOLETE) - by tigerw - 07-26-2013, 08:37 PM
RE: Core Forked (Core++?) - by tonibm19 - 07-26-2013, 09:03 PM
RE: Core Forked (Core++?) - by bearbin - 07-26-2013, 09:14 PM
RE: Core Forked (Core++?) - by tonibm19 - 07-26-2013, 09:15 PM
RE: Core Forked (Core++?) - by tigerw - 07-26-2013, 10:21 PM
RE: Core Forked (Core++?) - by bearbin - 07-27-2013, 12:07 AM
RE: Core Forked (Core++?) - by tigerw - 07-27-2013, 08:27 AM
RE: Core Forked (Core++?) - by tonibm19 - 07-27-2013, 08:47 AM
RE: Core Forked (Core++?) - by xoft - 07-26-2013, 10:26 PM
RE: Core Forked (Core++?) - by tigerw - 07-26-2013, 10:55 PM
RE: Core Forked (Core++?) - by xoft - 07-26-2013, 11:56 PM
RE: Core Forked (Core++?) - by tigerw - 07-27-2013, 01:01 AM
RE: Core Forked (Core++?) - by ThuGie - 07-27-2013, 12:48 AM
RE: Core Forked (Core++?) - by bearbin - 07-27-2013, 12:54 AM
RE: Core Forked (Core++?) - by xoft - 07-27-2013, 01:49 AM
RE: Core Forked (Core++?) - by tonibm19 - 07-27-2013, 04:21 AM
RE: Core Forked (Core++?) - by xoft - 07-27-2013, 04:32 AM
RE: Core Forked (Core++?) - by tigerw - 07-27-2013, 04:39 AM
RE: Core Forked (Core++?) - by tigerw - 07-27-2013, 04:49 AM
RE: Core Forked (Core++?) - by tonibm19 - 07-27-2013, 04:42 AM
RE: Core Forked (Core++?) - by xoft - 07-27-2013, 04:48 AM
RE: Core Forked (Core++?) - by bearbin - 07-27-2013, 05:03 AM
RE: Core Forked (Core++?) - by xoft - 07-27-2013, 05:08 AM
RE: Core Forked (Core++?) - by bearbin - 07-27-2013, 05:10 AM
RE: Core Forked (Core++?) - by NiLSPACE - 07-27-2013, 07:53 PM
RE: Core Forked (Core++?) - by tonibm19 - 07-27-2013, 08:55 PM
RE: Core Forked (Core++?) - by NiLSPACE - 07-27-2013, 08:59 PM
RE: Core Forked (Core++?) - by tigerw - 07-27-2013, 10:42 PM
RE: Core Forked (Core++?) - by NiLSPACE - 07-27-2013, 10:46 PM
RE: Core Forked (Core++?) - by bearbin - 07-27-2013, 10:47 PM
RE: Core Forked (Core++?) - by tigerw - 07-27-2013, 11:00 PM
RE: Core Forked (Core++?) - by xoft - 07-28-2013, 05:08 AM
RE: Core Forked (Core++?) - by tigerw - 07-28-2013, 06:11 AM
RE: Core Forked (Core++?) - by NiLSPACE - 07-28-2013, 01:33 AM
RE: Core Forked (Core++?) - by bearbin - 07-28-2013, 02:21 AM
RE: Core Forked (Core++?) - by NiLSPACE - 07-28-2013, 02:24 AM
RE: Core Forked (Core++?) - by bearbin - 07-28-2013, 02:51 AM
RE: Core Forked (Core++?) - by tigerw - 07-28-2013, 03:20 AM
RE: Core Forked (Core++?) - by NiLSPACE - 07-28-2013, 03:22 AM
RE: Core Forked (Core++?) - by tonibm19 - 07-28-2013, 04:21 AM
RE: Core Forked (Core++?) - by bearbin - 07-28-2013, 04:23 AM
RE: Core Forked (Core++?) - by xoft - 07-28-2013, 09:05 PM
RE: Core Forked (Core++?) - by tigerw - 07-28-2013, 10:53 PM
RE: Core Forked (Core++?) - by bearbin - 07-28-2013, 11:18 PM
RE: Core Forked (Core++?) - by FakeTruth - 07-29-2013, 01:09 AM
RE: Core Forked (Core++?) - by tigerw - 07-29-2013, 03:45 AM
RE: Core Forked (Core++?) - by FakeTruth - 07-29-2013, 06:08 AM
RE: Core Forked (Core++?) - by bearbin - 07-29-2013, 05:03 AM
RE: Core Forked (Core++?) - by xoft - 07-29-2013, 06:14 AM
RE: Core Forked (Core++?) - by FakeTruth - 07-29-2013, 06:48 AM
RE: Core Forked (Core++?) - by tigerw - 07-29-2013, 09:46 PM
RE: Core Forked (Core++?) - by tonibm19 - 07-29-2013, 10:48 PM
RE: Core Forked (Core++?) - by tigerw - 07-29-2013, 11:13 PM
RE: Core Forked (Core++?) - by tonibm19 - 07-29-2013, 11:19 PM
RE: Core Forked (Core++?) - by tigerw - 07-29-2013, 11:35 PM
RE: Core Forked (Core++?) - by bearbin - 07-29-2013, 10:08 PM
RE: Core Forked (Core++?) - by FakeTruth - 07-29-2013, 10:09 PM
RE: Core Forked (Core++?) - by bearbin - 07-29-2013, 10:59 PM



Users browsing this thread: 14 Guest(s)