Please help me to do this query protect doors , am I doing something wrong . I apologize for my bad English . Here's the script: PHP: public function tap ($ data) { if ($ data ['target'] -> getID () == 64 ) { $ username = $ data ['player'] -> username; foreach ($ this-> areas as $ name => $ area) { if (($ data ['player'] -> level-> getName () == $ area ['level']) and ($ area ['dooraccess'] == false) and ($ area ['owner'] ! = $ username) and (! in_array ($ username, $ area ['members'])) and! $ this-> api-> ban-> isOp ($ username)) { $ x = $ data ['target'] -> x; $ y = $ data ['target'] -> y; $ z = $ data ['target'] -> z; if (($ area ['pos1'] [ 0 ] <= $ x and $ x <= $ area ['pos2'] [ 0 ]) and ($ area ['pos1'] [ 1 ] <= $ y and $ y <= $ area ['pos2'] [ 1 ]) and ($ area ['pos1'] [ 2 ] <= $ z and $ z <= $ area ['pos2'] [ 2] )) {if (($ door-> meta & 0x04) === 0x04) { $ down = $ door-> getSide ( 0); $ level = $ this-> api-> level-> getDefault (); if ($ down-> getID () == 64 ) { $ meta = $ down-> getMetadata () ^ 0x08; $ level-> setBlock ($ down, BlockAPI :: get ( 64 , $ meta), true, false, true); return true; } return false; }$ data ['player'] -> sendChat (" This door is protected ); return true; Please help me!
Hello, My namis Joy Islam, To fix it(maybe) I think You should not add space: Code: $ <variable> Should be: Code: $<variable> Maybe wies can explain better, Thank you, Joy Islam