i need help

Posts 1–11 of 11 · Page 1 of 1
i need help
/*teleport*/
void teleport()

if(CH_teleport == 1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPtr;
if(dwPlayerPtr != 0)
{
float PositionY = 0.0; float PositionX = 0.0;float PositionZ = 0.0;
PositionX = *(float*)(dwPlayerPtr + OFS_X);
PositionY = *(float*)(dwPlayerPtr + OFS_Y);
PositionZ = *(float*)(dwPlayerPtr + OFS_Z);
if(GetAsyncKeyState(VK_F10)&1){
Telx = PositionX;
Tely = PositionY;
Telz = PositionZ;}
if(GetAsyncKeyState(VK_F11)&1){
*(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;
}}}


This-if(CH_teleport == 1)- comes out as a error can anyone help me fix this?(sorry if its wrong section)
dude wttf is that ?

Using Void / Call with If same time ? lol

why u dont try this :
Code:
int CH_teleport  =0; or 1;

if(CH_teleport == 1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPtr;
if(dwPlayerPtr != 0)
{
float PositionY = 0.0; float PositionX = 0.0;float PositionZ = 0.0;
PositionX = *(float*)(dwPlayerPtr + OFS_X);
PositionY = *(float*)(dwPlayerPtr + OFS_Y);
PositionZ = *(float*)(dwPlayerPtr + OFS_Z);
if(GetAsyncKeyState(VK_F10)&1){
Telx = PositionX;
Tely = PositionY;
Telz = PositionZ;}
if(GetAsyncKeyState(VK_F11)&1){
*(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;
}}}
OR

Code:
void teleport()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPtr;
if(dwPlayerPtr != 0)
{
float PositionY = 0.0; float PositionX = 0.0;float PositionZ = 0.0;
PositionX = *(float*)(dwPlayerPtr + OFS_X);
PositionY = *(float*)(dwPlayerPtr + OFS_Y);
PositionZ = *(float*)(dwPlayerPtr + OFS_Z);
if(GetAsyncKeyState(VK_F10)&1){
Telx = PositionX;
Tely = PositionY;
Telz = PositionZ;}
if(GetAsyncKeyState(VK_F11)&1){
*(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;
}}}

teleport();
thanks mate(^^)..\../

Telx
Tely
Telz
^These come up as errors
Quote Originally Posted by hiddengravy View Post
thanks mate(^^)..\../

Telx
Tely
Telz
^These come up as errors
Cuz u didn't define them .
Add this :

float Telx;
float Tely;
float Telz;
lol sorry mate but now *(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;
}}
have errors

Edit: do i put float infront of those also?
Quote Originally Posted by hiddengravy View Post
lol sorry mate but now *(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;
}}
have errors

Edit: do i put float infront of those also?
copy and paste the errors so we can see them
1>c:\users\ryan\documents\visual studio 2010\projects\no menu update\no menu update\main.cpp(57): error C2065: 'Telx' : undeclared identifier
1>c:\users\ryan\documents\visual studio 2010\projects\no menu update\no menu update\main.cpp(58): error C2065: 'Tely' : undeclared identifier
1>c:\users\ryan\documents\visual studio 2010\projects\no menu update\no menu update\main.cpp(59): error C2065: 'Telz' : undeclared identifier

or this?
*(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;
}}
Quote Originally Posted by hiddengravy View Post
1>c:\users\ryan\documents\visual studio 2010\projects\no menu update\no menu update\main.cpp(57): error C2065: 'Telx' : undeclared identifier
1>c:\users\ryan\documents\visual studio 2010\projects\no menu update\no menu update\main.cpp(58): error C2065: 'Tely' : undeclared identifier
1>c:\users\ryan\documents\visual studio 2010\projects\no menu update\no menu update\main.cpp(59): error C2065: 'Telz' : undeclared identifier

or this?
*(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;
}}

cba to explain on here how to fix .. pm me ur tv id and pass ill fix it
Quote Originally Posted by D e a t h h a u n t S View Post
cba to explain on here how to fix .. pm me ur tv id and pass ill fix it
get on msn
Quote Originally Posted by hiddengravy View Post
get on msn
Can you go on msn please?
Thanks

would of been better


Okay i fixed it for him .. then explained every part of it .. jesus was that some work explaining it to him
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us