Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,731 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Need help on digits() parameter #216549
07/17/08 14:47
07/17/08 14:47
Joined: Jun 2008
Posts: 91
C
Coisox Offline OP
Junior Member
Coisox  Offline OP
Junior Member
C

Joined: Jun 2008
Posts: 91
I have read the manual but still not really understand. This is my code:

STRING* playerName = " ";
digits (50, 50, "%30s", fontItemNum, 1, playerName);

Supposedly I want to display the value of playerName (which is "abcdef") but it only display 3 character which is MZI. I dont really understand the "%30s" part.

Re: Need help on digits() parameter [Re: Coisox] #216550
07/17/08 14:52
07/17/08 14:52
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
digits (50, 50,playerName, fontItemNum, 0, 0);

Re: Need help on digits() parameter [Re: Lukas] #216554
07/17/08 15:13
07/17/08 15:13
Joined: Jun 2008
Posts: 91
C
Coisox Offline OP
Junior Member
Coisox  Offline OP
Junior Member
C

Joined: Jun 2008
Posts: 91
Yeah!! Thx a lot! It works.

Previously, I did tried putting the variable at the 3rd parameter and for the last param, I think I put NULL :p

Re: Need help on digits() parameter [Re: Coisox] #216555
07/17/08 15:19
07/17/08 15:19
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Deleted by DJBMASTER

Last edited by DJBMASTER; 07/17/08 15:21. Reason: Deleted by DJBMASTER
Re: Need help on digits() parameter [Re: DJBMASTER] #216556
07/17/08 15:25
07/17/08 15:25
Joined: Jun 2008
Posts: 91
C
Coisox Offline OP
Junior Member
Coisox  Offline OP
Junior Member
C

Joined: Jun 2008
Posts: 91
One more question, what wrong with my array?

STRING* playerName[2] = {" ", " "};
digits (50, 50, playerName[0], fontItemNum, 0, 0);


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1