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
Counting Steps
Author Message
DartHVirS
Apprentice
*

Posts: 21
Likes Given: 1
Likes Received: 1 in 1 posts
Joined: Mar 2010
Reputation: 0



Post: #3
RE: Counting Steps
Thank you Soulless, but I need it to be more accurate.

How can I compare two player positions?

I tried with string functions but when they read the position comma they do not read anything after that comma.

For example STRMATCH(<p>,<p>) for example if <p> is equal to "804,600,0" that function only reads the first number before the comma "804". Is any string function that can erase the comma or something?, that would really help with my function.

OK, It is working now. What I did is the following:
Code:
[FUNCTION f_CountSteps]
local.p1 = <STRARG <p>>
local.p2 = <STRARG <STREAT <p>>>

IF (<tag0.stepp1> != <local.p1>) || (<tag0.stepp2> != <local.p2>)
tag.steps=<tag0.steps> + 1
tag.stepp1 = <STRARG <p>>
tag.stepp2 = <STRARG <STREAT <p>>>
timerf 1,f_CountSteps
ELSE
timerf 1,f_CountSteps
ENDIF
(This post was last modified: 01-27-2018 06:48 AM by DartHVirS.)
01-27-2018 06:00 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Counting Steps - DartHVirS - 01-27-2018, 03:42 AM
RE: Counting Steps - Soulless - 01-27-2018, 05:09 AM
RE: Counting Steps - DartHVirS - 01-27-2018 06:00 AM
RE: Counting Steps - darksun84 - 01-27-2018, 11:00 AM
RE: Counting Steps - DartHVirS - 01-27-2018, 01:03 PM

Forum Jump:


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