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
Events and Regions?
Author Message
Valios
Super Moderator
****

Posts: 390
Likes Given: 0
Likes Received: 12 in 9 posts
Joined: Mar 2010
Reputation: 6

Sphere Suite 2013

Post: #2
RE: Events and Regions?
(05-04-2012 11:44 AM)Reflex Wrote:  I am trying to give a player an event so when they leave my "pre event area" it will automatically remove some tags and events etc. basically if they choose to not join the event and leave after signing up for the event so I dont have to add checks to my leave items like teleporters and moongates. Not sure what i'm doing wrong here?

Code:
.SRC.EVENTS +E_LEAVE_PRE_EVENT

[EVENTS E_LEAVE_PRE_EVENT]
ON=@RegionLeave
SRC.TAG.CURRENTEVENT=
SRC.SAY YOU LEFT A REGION.
SRC.EVENTS -E_LEAVE_PRE_EVENT
RETURN 0
ELSE
RETURN 0
ENDIF

Where is your IF statement in that code to use that ELSE?
And I cannot understand why you're using "return 0" there, and twice?
Btw, you should create a function to remove the event instead.
05-04-2012 12:49 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Events and Regions? - Reflex - 05-04-2012, 11:44 AM
RE: Events and Regions? - Valios - 05-04-2012 12:49 PM
RE: Events and Regions? - Reflex - 05-04-2012, 12:51 PM
RE: Events and Regions? - Valios - 05-04-2012, 12:56 PM
RE: Events and Regions? - Reflex - 05-04-2012, 01:47 PM
RE: Events and Regions? - Valios - 05-04-2012, 02:39 PM
RE: Events and Regions? - Reflex - 05-04-2012, 03:11 PM
RE: Events and Regions? - Valios - 05-04-2012, 05:57 PM
RE: Events and Regions? - Reflex - 05-04-2012, 07:15 PM

Forum Jump:


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