OnPlayerConnect not being called in FS
#1

Title says it all really..

Filterscript:
pawn Код:
enum pInfo
{
    Slots,
    // Other stuff here, not important
}

new PlayerInfo[MAX_PLAYERS][pInfo];

public OnPlayerConnect(playerid)
{
    print("OnPlayerConnect was called.");
    PlayerInfo[playerid][Slots] = 5;
    return 1;
}
Server output:
Код:
[19:10:51] 
[19:10:51] Filterscripts
[19:10:51] ---------------
[19:10:51]   Loading filterscript 'testfs.amx'...
[19:10:51] OnFilter
[19:10:51]   Loaded 1 filterscripts.

[19:10:51] OnGameo
[19:10:51] Number of vehicle models: 0
[19:11:12] Incoming connection: 127.0.0.1:52821
[19:11:12] [join] Torran has joined the server (0:127.0.0.1)
[19:11:21] [part] Torran has left the server (0:1)
Gamemode:
pawn Код:
public OnPlayerConnect(playerid)
{
    return 1;
}
OnFilter + OnGameo are part of sscanf, iirc.
Any idea why its not being called, anyone?

No other filterscripts loaded as you can see from logs
Yes i have OnGameModeInit/OnFilterScriptInit
Reply


Messages In This Thread
OnPlayerConnect not being called in FS - by iTorran - 29.02.2012, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)