19.03.2012, 08:36
Add these two scripts to your server.cfg and weird things happen
45 pickups are created, when the loop is 15 x 2 = 30 (15 created by filterscript, 30 by gamemode)
It's as if OnGameModeInit() is called twice.
Code:
#include <a_samp> main(); public OnGameModeInit() // gamemode.pwn { new id; for(new i; i < 15; i++) { id = CreatePickup(1234, 1, 0.0, 0.0, 0.0, 0); printf("GM ID %d", id); } return 1; }
Code:
#include <a_samp> public OnFilterScriptInit() // filterscript.pwn { new id; for(new i; i < 15; i++) { id = CreatePickup(1234, 1, 0.0, 0.0, 0.0, 0); printf("FS ID = %d", id); } return 1; }
It's as if OnGameModeInit() is called twice.