Can someone, please tell me or explain to me why this is not working (and no, not nullptr since that wasnt what i did wrong)
the p_player->plocal->pos works fine, its pglobal that causes the crashing.
i don't have a bypass, might that be what is crashing it?
also, in OPK where does the unknown0 in Cbase come into play?
Dereferencing something pointing to invalid memory causes undefined behavior as stated in the C++ Standard. You should better check your pointers before dereferencing them. Also, try to debug it first.
By setting everyones location to (0, 0, 0) you freeze them at that position. If you do that for every player but yourself, you will still be able to move.
Pseudo-Code:
Code:
for (size_t i = 0; i < 32; ++i) {
if (i != local_index) {
do_opk();
}
}
Kann mir einer vielleicht sagen, wo man nachlesen kann, wie man was in C++ bennent ?
Also damit meine ich jetzt z.B. ein LPSTR dann als szString oder lpString zu nennen.
okay, i got opk working, altough now i have a problem, it teleports everyone, and then keeps sending them back to their normal location, so it look likes an infinite loop, anyway you can freeze them?
Historisch steht P für "pointer", während LP für "long pointer" steht. Lange Zeiger (auch weite Zeiger genannt) sind ein Überbleibsel aus 16-Bit-Windows, bei dem Sie dafür benötigt wurden, Speicherbereiche außerhalb des aktuellen Segments abzudecken. Das Präfix LP wurde beibehalten, um das Portieren von 16-Bit-Code in 32-Bit-Windows zu vereinfachen. Aktuell besteht hier kein Unterschied — ein Zeiger ist ein Zeiger.
okay, i got opk working, altough now i have a problem, it teleports everyone, and then keeps sending them back to their normal location, so it look likes an infinite loop, anyway you can freeze them?
out of the topic question Sir. I just want to ask if you can move? and the only thing that is stuck are the other players not you?
anyone have a source here. you can move on opk only the enemies are in the 0 position. or a save position then when you saved it. the enemies are in there .
WarRock EU - Code Snippets 07/12/2012 - WarRock - 7490 Replies Hi Leute,
in diesem Thread könnt ihr:
-> Nach Sourcecodes fragen(Beispiel unten)
-> Eure Sourcecodes posten(Wenn sie nicht von euch sind mit Credits!)
-> Fragen ob eure Source evtl. einen Fehler hat
-> Fragen was welcher Fehler bedeuted
-> Sourcecodes entnehmen(Bitte beim Release dann Credits angeben!)