[Tutorial] Maps Compiling Method [ EASY ]
#1

INTRODUCTION :

As we all know that its simple and easy but There are many Newbie who don't know how to Compile a Map So Here is my Tutorial For them.
I got many messages on forum / Skype about " How can i Compile Map ?". I can't tell Seperatly to everyone , That's why am Posting my thread for them.
CODES :


Код:
// Map Compiling Method
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print("Your Map Name Should be Here. if you want!");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print("Your Map Name Should be Here. if you want!");
	print("----------------------------------\n");
}

#endif

#pragma tabsize 0

public OnGameModeInit()
{
	//Post Your CreatObjects(000,0,000,00); / CreateDynamicObject(000,0,000,00); Here.
	return 1;
}


public OnPlayerConnect(playerid)
{
	//iF You have any RemoveBuildingForPlayer(000,0,000,00); Then Post it Here
	return 1;
}
GooD LucK
Reply
#2

How is this a tutorial?
Reply
#3

Then wht is it?
Reply
#4

This isn't a tutorial in anyway.

1) You're not explaining anything to anyone who may need this
2) Its a 'Small code' release and nothing more
3) And a waste of time for anyone who clicked on this.
Reply
#5

Do you know what tutorial even is ?
Reply
#6

Not a tutorial at all.
You can add maps with a filterscript just like this, lol:
pawn Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    Create(Dynamic)Object(...);
    return 1;
}
Reply
#7

Your code is also inaccurate, and plain out wouldn't work. You use both OnFilterScript... And OnGamemode... Which are two different things! I would say this was a copy and paste... but I don't even know where it'd be from.
Reply
#8

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Your code is also inaccurate, and plain out wouldn't work. You use both OnFilterScript... And OnGamemode... Which are two different things! I would say this was a copy and paste... but I don't even know where it'd be from.
Good (y). There is no matter if we post it in gamemodeinit or in filterscriptinit .. map will compiled as it will always :/
Reply
#9

It will get compiled.
But what you've added now is for gamemode. Not a filterscript.
So for testing a map, do you want them to change the mode?
Seriously, Learn what a tutorial is, how you can create them, in which way you can explain the script, etc..
Reply
#10

Quote:
Originally Posted by biker122
Посмотреть сообщение
It will get compiled.
But what you've added now is for gamemode. Not a filterscript.
So for testing a map, do you want them to change the mode?
Seriously, Learn what a tutorial is, how you can create them, in which way you can explain the script, etc..
Sorry, by mistaken i post it .. now onwards i will never make any post in which people will get help .. btw tell me where should i need to post this thread
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)