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
Help!
Author Message
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #11
RE: Help!
First check if regions accepts tags, if not, use vars in @enter to count players inside the region, then announce

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
06-14-2016 01:29 PM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #12
RE: Help!
Here you got your script fixed (not tested but should work)


[REGIONTYPE r_region_attack]
On=@Enter
IF (<SRC.IsPlayer>) //you only need one if.
TAG.players += 1 //**read note
ENDIF

On=@Exit
IF (<SRC.IsPlayer>)
TAG.players -= 1
ENDIF
if (<tag0.player> < 0) checks the tag dosnt take alues under 0 (if dosnt exist = 0)
tag.player //erase tag.
endif

*Notes 1
-if 0 will auto set tag.players = 1

-u dont need to put "region." to call the region.
If you put only "tag.players" wtihout "region." or "src." it will affect to the region.

-src.region.tag.player would point to the players region.

-if you writte region.tag.player on that trigger, you are calling the region where the region is.
Is like writting <region.region.tag.player>

You can check all I said on this link, look for "References"TORFO WIKI SPHERE
hope this solve your problem.
And learn to use the wiki.

**Notes 2
Try to remember that when you set tag. if the value are numbers, sphere will save the value as HEXADECIMAL, so you will need do <eval <tag.player> to retrieve the value of the tag in decimals numbers. Example: (1=01) (10=0a)
(This post was last modified: 06-27-2016 11:48 PM by rastrero.)
06-27-2016 11:16 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes rastrero's post
an0n!m0use
Journeyman
*

Posts: 56
Likes Given: 16
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #13
RE: Help!
(06-27-2016 11:16 PM)rastrero Wrote:  Here you got your script fixed (not tested but should work)
Thx, working perfectly Veryhappy
06-28-2016 02:29 AM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #14
RE: Help!
Im glad it works, but please, LEARN the wiki.
Your error was so basic.
That is the reason nobody saw it or helped you.
Learn how to use the wiki!!!
06-28-2016 04:48 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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