|
|
Re: Convert entity handle pointer for string
[Re: NeoNeper]
#415533
01/19/13 21:45
01/19/13 21:45
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
I'll use mysql. I can not use numbers, only string to query. Two things; 1) Don't use mysql! 2) Don't use mysql! 3) When ignoring 1 and 2: For heavens sake, use parameter substitution! Also, you are leaking memory all over the place and make things more complicated than they need to be. PS; The handle of an entity is quite volatile, I wouldn't rely on it in any way across application runs.
Last edited by JustSid; 01/19/13 21:57.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Convert entity handle pointer for string
[Re: MasterQ32]
#415537
01/19/13 22:29
01/19/13 22:29
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
tanks Taster032.
work this way:
long i= *((long*)(&hand_pointer)); str_for_int(n,i);
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: Convert entity handle pointer for string
[Re: NeoNeper]
#415540
01/20/13 00:55
01/20/13 00:55
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Reread JustSid's post. Then fix your code and thank him.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Convert entity handle pointer for string
[Re: Uhrwerk]
#415859
01/24/13 20:55
01/24/13 20:55
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
what is the correct format for position x,y,z?
Sample:
VECTOR temp; vec_set(temp,player.x);
int pos_x = temp.x? long pos_x = temp.x? ?????
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
|