The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






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: 245
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)