[ACS] getcvar() does not get string values..

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Apothem
Posts: 2070
Joined: Sat Nov 29, 2003 7:13 pm
Location: Performing open heart surgery on an ACS compiler.

[ACS] getcvar() does not get string values..

Post by Apothem »

I dunno if this is really a bug, but getcvar() can pull integer values but cannot pull string values from console variables.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

ACS can't manage strings. All ACS strings are merely referenced by an index. As such there is no way a function could return a string value.
User avatar
Apothem
Posts: 2070
Joined: Sat Nov 29, 2003 7:13 pm
Location: Performing open heart surgery on an ACS compiler.

Post by Apothem »

Ewwww, that's too bad too, I was trying to pull the player name from the console. Isn't there another way to do that?
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $
Contact:

Post by Bio Hazard »

You can print it with data type n.
print(s:"Player 0's name is: ",n:0,s:".");
User avatar
Apothem
Posts: 2070
Joined: Sat Nov 29, 2003 7:13 pm
Location: Performing open heart surgery on an ACS compiler.

Post by Apothem »

Thanks a bunch, Bio. :)
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

don't forget that n:1 through n:8 are each player, respectively. n:0 is the activator.
Post Reply

Return to “Closed Bugs [GZDoom]”