SA-MP Forums Archive
can i do this ? - 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: can i do this ? (/showthread.php?tid=497361)



can i do this ? - karolis11234 - 26.02.2014

im creating a filtersccript and i wonder can i delete these lines ?:
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
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;
}


Re: can i do this ? - Lloyde - 26.02.2014

But if you can put there, but if there Do you delete


Re: can i do this ? - iThePunisher - 26.02.2014

yes you can if there is nothing to do with the those lines


Re: can i do this ? - Bingo - 26.02.2014

If you are creating filterscript then why did you wrote those lines if you wanted to delete?

No you cant delete

Код:
 public OnGameModeInit
Dont delete anything which is under gamemodeinit, Edit the gamemode text.


Re: can i do this ? - Konstantinos - 26.02.2014

Quote:
Originally Posted by [vTc]Patroool
Посмотреть сообщение
If you are creating filterscript then why did you wrote those lines if you wanted to delete?

No you cant delete

Код:
 public OnGameModeInit
Dont delete anything which is under gamemodeinit, Edit the gamemode text.
If he wants to make a filterscript, OnGameMode Init/Exit has nothing to do with it. What's the point of having it?

pawn Код:
#define FILTERSCRIPT

#include <a_samp>

public OnFilterScriptInit()
{
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}