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
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
Post Reply 


Messages In This Thread
Help! - an0n!m0use - 05-31-2016, 03:06 AM
RE: Help! - an0n!m0use - 06-02-2016, 03:26 AM
RE: Help! - Criminal - 06-02-2016, 03:54 AM
RE: Help! - an0n!m0use - 06-03-2016, 03:29 PM
RE: Help! - Criminal - 06-03-2016, 03:44 PM
RE: Help! - an0n!m0use - 06-03-2016, 06:43 PM
RE: Help! - an0n!m0use - 06-07-2016, 12:41 AM
RE: Help! - an0n!m0use - 06-13-2016, 03:54 AM
RE: Help! - Mad Gunther - 06-14-2016, 03:26 AM
RE: Help! - an0n!m0use - 06-14-2016, 06:09 AM
RE: Help! - Extreme - 06-14-2016, 01:29 PM
RE: Help! - rastrero - 06-27-2016 11:16 PM
RE: Help! - an0n!m0use - 06-28-2016, 02:29 AM
RE: Help! - rastrero - 06-28-2016, 04:48 AM

Forum Jump:


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