ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[ACS] PLAYERINFO_TIME always returns -1

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs
View previous topic :: View next topic  
Author Message
rhinoduck
Potatoes


Joined: 22 Oct 2012

PostPosted: Thu Sep 07, 2017 1:18 am    Post subject: [ACS] PLAYERINFO_TIME always returns -1 Reply with quote

When the GetPlayerInfo() ACS function is called to fetch the PLAYERINFO_TIME value, the returned value is always -1; except for the very first tick when the player joins for which it returns 0.

ACS code with which this was tested (in SP, and in CS in survival game mode):
Code:
script 1 ENTER
{
    int pnum = PlayerNumber();
    Log(s:"Time for player #", d:pnum, s:": ", d:GetPlayerInfo(pnum, PLAYERINFO_TIME));
    Delay(35);
    restart;
}


Test wad containing the above code: acstest-playerinfo_time.wad
Back to top
View user's profile Send private message
Kilgore
Air Cavalry


Joined: 17 Jun 2003
Location: Up the river

PostPosted: Sat Sep 09, 2017 7:54 am    Post subject: Reply with quote

Fixed. Will appear on the next release.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group