How do I use the streamer correctly?
#10

Quote:
Originally Posted by Mark_Weston
Посмотреть сообщение
This is one of them, not the interiors ^^

Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <streamer>
#if defined FILTERSCRIPT               <======= remove this

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print("FORT CARSON");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else    <======= remove this too


#endif   <======= and this too // that if and endif is causing the script, not to load as filterscript


public OnPlayerSpawn(playerid)
{
CreateDynamicObject(3578, -195.43948364258, 1005.932800293, 17.985757827759, 0, 0, 0);
CreateDynamicObject(3578, -190.72537231445, 1005.9172973633, 17.987302780151, 0, 0, 0);
CreateDynamicObject(3578, -190.7054901123, 996.150390625, 17.961673736572, 0, 0, 0);
CreateDynamicObject(3578, -195.43380737305, 996.15960693359, 17.950054168701, 0, 0, 0);
CreateDynamicObject(3578, -200.40943908691, 1001.0523681641, 17.945581436157, 0, 0, 270.27026367188);
CreateDynamicObject(3578, -185.81739807129, 1001.0452880859, 17.955410003662, 0, 0, 270.01916503906);
CreateDynamicObject(3578, -190.84298706055, 1001.0380859375, 18.549335479736, 0, 0, 270.26916503906);
CreateDynamicObject(3578, -195.25625610352, 1001.0584716797, 18.774433135986, 0, 0, 270.26916503906);
CreateDynamicObject(3578, -190.72421264648, 1030.8763427734, 17.99680519104, 0, 0, 0);
CreateDynamicObject(3578, -195.41784667969, 1030.8660888672, 18.014074325562, 0, 0, 0);
CreateDynamicObject(3578, -205.83843994141, 1018.4357910156, 17.941453933716, 0, 0, 89.72998046875);
CreateDynamicObject(3578, -190.69215393066, 1085.6163330078, 17.964206695557, 0, 0, 0);
CreateDynamicObject(3578, -195.39782714844, 1085.6274414063, 17.958534240723, 0, 0, 0);
CreateDynamicObject(3578, -190.65602111816, 1110.5963134766, 17.990335464478, 0, 0, 0);
CreateDynamicObject(3578, -195.42805480957, 1110.6059570313, 17.993419647217, 0, 0, 0);
CreateDynamicObject(3578, -190.19033813477, 1138.1514892578, 17.942199707031, 0, 0, 0);
CreateDynamicObject(3578, -195.40760803223, 1188.0872802734, 17.943759918213, 0, 0, 0);
CreateDynamicObject(3578, -190.67535400391, 1188.0836181641, 17.962366104126, 0, 0, 0);
CreateDynamicObject(3578, -275.55639648438, 1088.0948486328, 17.951616287231, 0, 0, 0);
CreateDynamicObject(3578, -275.51516723633, 1108.6407470703, 17.947170257568, 0, 0, 0);
CreateDynamicObject(3578, -275.54351806641, 1138.0949707031, 17.942901611328, 0, 0, 0);
CreateDynamicObject(3578, -275.47625732422, 1158.6313476563, 17.944498062134, 0, 0, 0);
CreateDynamicObject(3578, -285.79913330078, 1148.4392089844, 17.943759918213, 0, 0, 90.215026855469);
CreateDynamicObject(3578, -285.81240844727, 1098.1573486328, 17.943759918213, 0, 0, 90.214233398438);
CreateDynamicObject(3578, -285.78894042969, 1063.6098632813, 17.943954467773, 0, 0, 90.214233398438);
CreateDynamicObject(3578, -205.80767822266, 1098.2359619141, 17.946805953979, 0, 0, 89.964233398438);
CreateDynamicObject(3578, -180.2578125, 1098.2392578125, 17.946111679077, 0, 0, 89.9560546875);
CreateDynamicObject(3578, -75.797660827637, 1098.4315185547, 17.943759918213, 0, 0, 89.961547851563);
CreateDynamicObject(3578, -55.24388885498, 1098.3112792969, 17.943759918213, 0, 0, 89.961547851563);
CreateDynamicObject(3578, -25.801626205444, 1098.3426513672, 17.935581207275, 0, 0, 89.961547851563);
CreateDynamicObject(3578, -5.2024297714233, 1098.2706298828, 17.93611907959, 0, 0, 89.961547851563);
CreateDynamicObject(3578, -15.457639694214, 1088.1182861328, 17.968759536743, 0, 0, 179.98657226563);
CreateDynamicObject(3578, -65.510864257813, 1088.1076660156, 17.939208984375, 0, 0, 179.98352050781);
CreateDynamicObject(3578, -65.449966430664, 1108.6381835938, 17.943759918213, 0, 0, 179.98352050781);
CreateDynamicObject(3578, -65.459129333496, 1138.1364746094, 17.962684631348, 0, 0, 179.98352050781);
CreateDynamicObject(3578, -65.419921875, 1158.6455078125, 17.937698364258, 0, 0, 179.98352050781);
CreateDynamicObject(3578, -65.516990661621, 1188.1400146484, 17.862787246704, 0, 0, 179.98352050781);
CreateDynamicObject(3578, -115.42242431641, 1188.1068115234, 17.946201324463, 0, 0, 179.98352050781);
CreateDynamicObject(3578, -115.540184021, 1208.6560058594, 17.93843460083, 0, 0, 179.98352050781);
CreateDynamicObject(3578, -125.82373046875, 1198.4094238281, 17.946805953979, 0, 0, 270.22521972656);
CreateDynamicObject(3578, -105.27281951904, 1198.3352050781, 17.938154220581, 0, 0, 270.2197265625);
CreateDynamicObject(3578, -75.836502075195, 1198.4383544922, 17.921806335449, 0, 0, 270.2197265625);
CreateDynamicObject(3578, -55.309478759766, 1198.1015625, 17.560947418213, 0, 0, 270.2197265625);
CreateDynamicObject(3578, -180.30270385742, 1198.5090332031, 17.951196670532, 0, 0, 270.2197265625);
CreateDynamicObject(3578, -205.83624267578, 1198.3391113281, 17.939836502075, 0, 0, 270.2197265625);
CreateDynamicObject(3578, -265.27624511719, 1098.1477050781, 17.948854446411, 0, 0, 270.2197265625);
CreateDynamicObject(3578, -327.50643920898, 1098.5139160156, 17.963495254517, 0, 0, 270.2197265625);
CreateDynamicObject(3578, -306.93304443359, 1098.2821044922, 17.937246322632, 0, 0, 270.2197265625);
CreateDynamicObject(3578, -317.11318969727, 1088.0964355469, 17.939756393433, 0, 0, 0);
CreateDynamicObject(1259, -192.05319213867, 995.30438232422, 32.207962036133, 0, 0, 89.775177001953);
CreateDynamicObject(9193, -193.03712463379, 997.26971435547, 23.630840301514, 0, 0, 0.25);
CreateDynamicObject(8551, -193.13610839844, 986.11981201172, 22.457996368408, 0, 0, 0);
CreateDynamicObject(8537, -89.233932495117, 1209.2393798828, 25.998092651367, 0, 0, 89.730010986328);
CreateDynamicObject(1311, -192.76361083984, 1188.2371826172, 22.795425415039, 0, 0, 0);
CreateDynamicObject(2364, -180.0516204834, 1208.8897705078, 18.7421875, 0, 0, 0);
CreateDynamicObject(6056, -150.24154663086, 1209.7462158203, 23.714643478394, 0, 0, 0);
CreateDynamicObject(6958, 92.497421264648, 1199.4929199219, 26.232501983643, 0, 0, 0);
CreateDynamicObject(9132, 41.148700714111, 1122.8985595703, 37.855838775635, 0, 0, 269.71020507813);
CreateDynamicObject(14467, -193.3690032959, 1187.8433837891, 21.172861099243, 0, 0, 180.23999023438);
CreateDynamicObject(3578, -55.318710327148, 1148.5627441406, 17.943759918213, 0, 0, 269.93334960938);
CreateDynamicObject(3528, -99.008529663086, 1077.5877685547, 34.703540802002, 0, 0, 0);
CreateDynamicObject(6965, -65.252624511719, 1098.4125976563, 21.548934936523, 0, 0, 0);
CreateDynamicObject(6965, -115.54407501221, 1198.4558105469, 21.561679840088, 0, 0, 0);
CreateDynamicObject(6965, -192.30413818359, 1098.7232666016, 21.418706893921, 0, 0, 0);
CreateDynamicObject(3578, -180.26313781738, 1148.3853759766, 17.950521469116, 0, 0, 89.9560546875);
CreateDynamicObject(8492, -189.78144836426, 995.39331054688, 38.904434204102, 0, 0, 328.06005859375);
}
We custom map everything, but its really annoying when nothing comes to lifez
that if and endif condition is causing the script, not to intialise as filterscript, though you are using this script as an FS, and objects would go under OnGameModeInit or OnFilterScriptInit.
Reply


Messages In This Thread
How do I use the streamer correctly? - by Mark_Weston - 12.02.2012, 15:10
Re: How do I use the streamer correctly? - by Mark™ - 12.02.2012, 15:20
Re: How do I use the streamer correctly? - by Mark_Weston - 12.02.2012, 15:40
Re: How do I use the streamer correctly? - by Mark™ - 12.02.2012, 15:42
Re: How do I use the streamer correctly? - by Mark_Weston - 12.02.2012, 15:45
Re: How do I use the streamer correctly? - by Mark™ - 12.02.2012, 15:51
Re: How do I use the streamer correctly? - by Mark™ - 12.02.2012, 15:55
Re: How do I use the streamer correctly? - by Mark_Weston - 12.02.2012, 15:58
Re: How do I use the streamer correctly? - by ReneG - 12.02.2012, 16:01
Re: How do I use the streamer correctly? - by Mark™ - 12.02.2012, 16:03

Forum Jump:


Users browsing this thread: 2 Guest(s)