SA-MP Forums Archive
Function Does not work please help - 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: Function Does not work please help (/showthread.php?tid=287498)



Function Does not work please help - Tigerkiller - 03.10.2011

Hi Community.
I wanted to replace OnGameModeInit with mine OnGameModeInit for an include and look like this

pawn Код:
public OnGameModeInit()
{
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

#if defined _ALS_OnGameModeInit
    #undef OnGameModeInit
#endif

#define OnGameModeInit Test

public Test()
{
    print("Server shuting down for a test!");
    SendRconCommand("exit");
    return CallRemoteFunction("OnGameModeInit", "");
}
no errors or somethink but does not work
can anyone help me ?