grasmanek94 / AntiServerFullAttackFix

Fix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debian 7.7

oscar-broman opened this issue · comments

Loading this plugin makes the server act very strange on x86_64 Debian 7.7.

It appears that OnPlayerConnect is not being called, and the gamemode name is Unknown. However, some things seem to work. The class selection doesn't work, but the camera is in the right place.

@Zeex could this have something to do with sampgdk?

That possibility exists, because I don't really see a reason why it shouldn't if it works on other linux based systems, especially as they are using the same binary everywhere.

commented

Yeah, it's quite possible. Need a repro.

#include <a_samp>

main() {}

public OnGameModeInit() {
    if (funcidx("OnGameModeInit2") != -1) {
        CallLocalFunction("OnGameModeInit2", "");
    }
}

forward OnGameModeInit2();
public OnGameModeInit2() {
    printf("never printed");
}

If the plugin is loaded, OnGameModeInit2 never gets called because funcidx returns -1.

I think the newest commit by mrdrifter fixed this

commented

Any other plugins in use?

Use this plugin http://4fun-serv.pl/AntiServerFullFix.so check if it works

PS. If you are using crashdetect update 4.15.1

commented

@oscar-broman Nevermind, try the binary linked by @piatus above, it should fix this.

I just compiled the most recent version and everything seems to be working!

I'm not sure what that return -1 was doing in the funcidx function!

Good to know that everything works!