OnPlayerConnect not being called in FS - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerConnect not being called in FS (
/showthread.php?tid=322079)
OnPlayerConnect not being called in FS -
iTorran - 29.02.2012
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