Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/27/26 22:06
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 5,647 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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