Post: Weird teleport code problem
01-31-2015, 04:28 PM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Well thanks to Winter I have got teleporting to work - i can save a location (where I have been stood) and come back there.

So now I am wanting to use custom teleport points (with a view to use them more for entity spawning). I have got;

    void teleportToXYZ(int client, float *x, float *y, float *z) {
float *Origin[3] = { x, y, z };
PS3::WriteFloat((Offsets::Teleport + 0x3980 * client), Origin, 3);
}


But when I call it using teleportToXYZ(0,0,0,0); vs2010 is fine and lets me build it. However when I try to change the xyz portion, vs2010 says the*following "came up as being incompatible with float*;"

0.01f - float
100 - int
100f - threw up 3 errors
0.100 - double

Does anyone knkw why this is?
(adsbygoogle = window.adsbygoogle || []).push({});
02-26-2015, 03:48 PM #2
kiwi_modz
I defeated!
try changing all your floats to singles maybe. idk im no expert.
02-26-2015, 05:34 PM #3
seanhellen
Are you high?
Lol. Yep thats exactly what it was. I could have sworn I tried that before I posted the thread but obviously not. Got it working now.

Thanks.
02-28-2015, 07:57 AM #4
kiwi_modz
I defeated!
Originally posted by seanhellen View Post
Lol. Yep thats exactly what it was. I could have sworn I tried that before I posted the thread but obviously not. Got it working now.

Thanks.


no worries Smile remember to quote posts on here. i would have never known you reply if i didn't check on this thread Smile.
02-28-2015, 04:50 PM #5
seanhellen
Are you high?
Originally posted by ResistTheKiwi View Post
no worries Smile remember to quote posts on here. i would have never known you reply if i didn't check on this thread Smile.


Ahhh. Thats why everyone keeps quoting everyone else lol. Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo