Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Faction or Race Guards
Author Message
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #11
RE: Faction or Race Guards
(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
08-13-2015 03:53 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #12
RE: Faction or Race Guards
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
08-13-2015 04:33 AM
Find all posts by this user Like Post Quote this message in a reply
gergecoelho
Apprentice
*

Posts: 31
Likes Given: 7
Likes Received: 3 in 3 posts
Joined: Jul 2015
Reputation: 0



Post: #13
RE: Faction or Race Guards
Cool!

Everything is running smoothly now.

Thanks, everyone! Big Grin
08-13-2015 07:44 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)