Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by jcl. 04/24/26 17:48
ZorroGPT
by TipmyPip. 04/23/26 14:23
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (1 invisible), 3,659 guests, and 14 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how converter string to pointer? #312148
02/23/10 13:58
02/23/10 13:58
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Good morning to alls (^.^)
The heading of the topic already says everything.

I need convert the value of one string for a pointer
equal to the eval ()
that is used for some lenguage of script.

for example:
STRING* reference = "plate_armor" // this is a string value.

now... i can to reference a pointer with the value of the string.

plate_armor; //this is a pointer.
"plate_armor"; // this is a string..

ohh my goodd... what I make???
------------------------------------------
this is an example that does not function:
STRING* reference = "plate_armor";
...
_ptr(reference) //convert the value of the string reference for pointer.
---------------------------------------
somebody helps me plz plz.. (T.T)
lol>.
Tnks


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: how converter string to pointer? [Re: NeoNeper] #312169
02/23/10 15:22
02/23/10 15:22
Joined: Dec 2008
Posts: 271
Saturnus Offline
Member
Saturnus  Offline
Member

Joined: Dec 2008
Posts: 271
I don't know whether I got that right, but I think this is what you're looking for:
http://www.conitec.net/beta/engine_getvar.htm

Re: how converter string to pointer? [Re: Saturnus] #312388
02/24/10 15:29
02/24/10 15:29
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
I already had seen this function in the documentation however I do not obtain to understand as it functions in the Real.

I did not understand the example of it.
you could show to an example using this function to me?
Plz plz (^.^)
Tnkx


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: how converter string to pointer? [Re: NeoNeper] #312389
02/24/10 15:37
02/24/10 15:37
Joined: Apr 2009
Posts: 274
atari98 Offline
Member
atari98  Offline
Member

Joined: Apr 2009
Posts: 274
Look at the beta manual


Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Re: how converter string to pointer? [Re: atari98] #312403
02/24/10 16:41
02/24/10 16:41
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
I see... but i not understand the exemplate.
I made a mount of tests but none functions..

char* name= "plate_armor";

inv_float_item(engine_getvar (name, VAR_POINTER));
OR
inv_float_item(engine_getvar (name, VAR_STRUCT));

BUT NOT.

THE FUNCTION CORRECT IS.

inv_float_item(plate_armor);//plate_armor is a pointer. this is funct. but no is i want


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________

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