void (*Kill)(void *instance);
void (*old_Update)(void *instance);
void Update(void *instance) {
if (instance != NULL) {
auto players = get_PlayerList();
for (int i; i < players->getLength; i++) {
auto player = players->getPointer();
Kill(player);
}
}
old_Update(instance);
}
void (*Kill)(void *instance);
void (*old_Update)(void *instance);
void Update(void *instance) {
if (instance != NULL) {
MonoArray* players = get_PlayerList();
for (int i = 0; i < mono_array_get_length(players); i++) {
MonoObject* player = mono_array_get(players, i);
Kill(player);
}
}
old_Update(instance);
}
Can you please send me your telegram username?Cast the void* pointer to a PhotonPlayer* pointer using static_cast:
auto photonPlayer = static_cast<PhotonPlayer*>(PhotonPlayer->getPointer())[i];
I will send you real code there. The code you fixed is not real that was just an example.Cast the void* pointer to a PhotonPlayer* pointer using static_cast:
auto photonPlayer = static_cast<PhotonPlayer*>(PhotonPlayer->getPointer())[i];
Note : My English is Weak So Please Don't Judge!You sir, are stupid. You clearly don't know how to code, you talk about people potentially copying your code when that's pretty much what you've done from me and probably others too.
If you even bothered to read that post about monoArray hooking and some of the top comments you'll have seen that this error was fixed by adding another * in the monoArray function like so...
monoArray<void**>*(*PhotonNetwork_get_OtherPlayers)() = (monoArray<void**>*(*)())il2cppAddress + 0xOFFSET;
Go and learn how to code C++ programming language then you can stop bothering me and other people with a fake account, YOURDADPRODUCTION or whoever you really are.
You sir, are stupid. You clearly don't know how to code, you talk about people potentially copying your code when that's pretty much what you've done from me and probably others too.
If you even bothered to read that post about monoArray hooking and some of the top comments you'll have seen that this error was fixed by adding another * in the monoArray function like so...
monoArray<void**>*(*PhotonNetwork_get_OtherPlayers)() = (monoArray<void**>*(*)())il2cppAddress + 0xOFFSET;
Go and learn how to code C++ programming language then you can stop bothering me and other people with a fake account, YOURDADPRODUCTION or whoever you really are.
That's what I said brother I'm new in this language that's why I don't know basic things.RPC is complicated so yes I spent money to learn how to do that with parameters, I already knew how to use RPC with no params
You didn't even understand how to do the basic things, like for example where to hook...
monoArray<void**>*(*PhotonNetwork_get_OtherPlayers)();
Which goes in main.cpp above hack thread btw. All hooked function go in main.cpp. You would know this if you took the time to read/watch some tutorials on here and on YouTube.
I'm not surprised your game is crashing, you're trying to pass Photon Players into the Kill() function, which is not designed to take Photon Players as a parameter. I already told you kill all players is RPC.
Just because there is a method called Kill() doesn't mean you can kill all players using that function, it doesn't work like that. Learn how to code better.
As for why I blocked you, I've been told by several people that you copy their code. You already had lot of code from me, I'm done helping you now don't bother me anymore.
Btw, still my game crashing even adding that hook above hack thread and I'm doing CloseConnection nowRPC is complicated so yes I spent money to learn how to do that with parameters, I already knew how to use RPC with no params
You didn't even understand how to do the basic things, like for example where to hook...
monoArray<void**>*(*PhotonNetwork_get_OtherPlayers)();
Which goes in main.cpp above hack thread btw. All hooked function go in main.cpp. You would know this if you took the time to read/watch some tutorials on here and on YouTube.
I'm not surprised your game is crashing, you're trying to pass Photon Players into the Kill() function, which is not designed to take Photon Players as a parameter. I already told you kill all players is RPC.
Just because there is a method called Kill() doesn't mean you can kill all players using that function, it doesn't work like that. Learn how to code better.
As for why I blocked you, I've been told by several people that you copy their code. You already had lot of code from me, I'm done helping you now don't bother me anymore.
Thanks for replying.Perhaps unrelated and not answering your problem, but since LibModz won't answer you anymore I thought I'd share some information.
Imo, if you want to destroy other players the best to do so is to use:
public void DestroyPlayerObjects(int playerId, bool localOnly)
in NetworkingPeer.
You'll get the playerId from the PhotonPlayer instances in the array (*PhotonNetwork_getOtherPlayers)(), that you have. And you can exclude your PhotonPlayer by checking: bool get_isLocal().
The reason this is the best way is that you can destroy players regardless of if you are the master client or not. And you don't have to use any complicated RPC methods.
Thanks for replying.
Do you have Telegram?
I will send you the complete code there, just check the code and correct me.
For your kind information Dumbass, I have already fixed that shit so now Shut Yo Bitch Ass Up.Dumbass dont know how to code or fix a stupid error, and he worried about someone to copy paste his code, oh sorry, that's not even your code
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies