Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, 1 invisible), 1,499 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İ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 | chip programmers | 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