SphereCommunity
Attacker.add error - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Attacker.add error (/Thread-Attacker-add-error)



Attacker.add error - Rizz - 05-30-2015 09:30 AM

I get some errors sometimes here

PHP Code:
if (!<REF1.isplayer>)
    
REF2.attacker.clear
    REF2
.attacker.add <REF1>
endif 

This code is under PACKET5

The error is:

01:18:ERROR:(functions.scp,1878)Undefined keyword 'REF2.attacker.add'

REF1 attacks
REF2 attacked by REF1


RE: Attacker.add error - XuN - 05-30-2015 05:34 PM

Maybe you must check if REF1 exists and its not the same uid as REF2 (sometimes can happen from packets).