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
1 registered members (TipmyPip), 18,633 guests, and 5 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
txt_create #269645
06/03/09 23:17
06/03/09 23:17
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

The following quote is taken from : txt_create(var strings, var layer)
Quote:

Example (lite-C):
TEXT* mytext;
...
mytext = txt_create(10,0);
...
// remove the strings of the text

int i;for (i = 0; i < mytext-> strings ; i++)
if ((mytext->pstring)[i])
ptr_remove((mytext->pstring)[i]);
ptr_remove(mytext);


Should line

int i;for (i = 0; i < mytext->strings; i++)

be

int i;for (i = 0; i < mytext->pstrings; i++)


Ottawa smile


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: txt_create [Re: Ottawa] #269691
06/04/09 07:38
06/04/09 07:38
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
No, I see no fault in the manual here.

Re: txt_create [Re: jcl] #269698
06/04/09 08:25
06/04/09 08:25
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
strings is caount of strgins in text,

pstring is the pointer to the text's string array.


3333333333
Re: txt_create [Re: Quad] #270377
06/07/09 23:39
06/07/09 23:39
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi JCl and Quadraxas smile

I'm back from a little vacation, thanks for the information.

Now I get it;
.string is max number of defined strings
and
.pstring is the pointer to one of the strings. wink

Ottawa


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

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