SphereCommunity
Faction or Race Guards - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Faction or Race Guards (/Thread-Faction-or-Race-Guards)

Pages: 1 2


RE: Faction or Race Guards - darksun84 - 08-13-2015 03:53 AM

(08-13-2015 02:23 AM)gergecoelho Wrote:  Cool! It's working fine now, thanks a lot!

But I'm constantly getting this error on the console: " 13:22:ERROR:(human_guard.scp,63)Undefined symbol '' "

And this " IF <src.flags>=& statf_criminal " is line 63. Any way to remove this? Seems to be working fine otherwise. Shock

Correct syntax is without the " ="

if <src.flags> & statf_criminal


RE: Faction or Race Guards - XuN - 08-13-2015 04:33 AM

you have to remove the '=':

IF (<src.flags>&statf_criminal)// when you are checking if a character has some flags, encapsulate it inside ( ) for that check (regardless of the rest), same for <Can>, <CanUse>, etc


RE: Faction or Race Guards - gergecoelho - 08-13-2015 07:44 AM

Cool!

Everything is running smoothly now.

Thanks, everyone! Big Grin