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
Support for return values other than vars #71001
04/15/06 17:56
04/15/06 17:56
Joined: Sep 2005
Posts: 514
USA
Gho5tFac3K1llah Offline OP
Developer
Gho5tFac3K1llah  Offline OP
Developer

Joined: Sep 2005
Posts: 514
USA
Hello. I am in development of a plugin at the moment. It would be very nice to have functions such as:

DLLFUNC STRING* md5(STRING *str)

Unless you can already do this, it would be helpful to be able to use these types of functions like this:

dllfunction md5(string*);
...
string md5_hash = md5("md5test");

Now, would something such as this ever be available? This would be useful for people who are making functions that return a string to actually return a string and not copy a string to another using str_cpy.

Re: Support for return values other than vars [Re: Gho5tFac3K1llah] #71002
04/15/06 18:38
04/15/06 18:38
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
TripleX Offline
Expert
TripleX  Offline
Expert

Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
return a string:

c++
DLLFUNC STRING* Create_String(STRING* content)
{
return((STRING*)str_create(content->chars));
}
c-script
dllfunction Create_String(str);
string* str_str;
//..
str_str = Create_String("#32");


same for entities, vectors, sounds etc. etc.

TripleX


Moderated by  aztec, Spirit 

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