Filterscript loads but does not work in-game.
#1

Good day SA-MP community, I am here today again with another scripting problem.
My code here;
Код:
#include <a_samp>
#include <streamer>
#include <YSI\y_ini>
public OnFilterScriptInit()
{
	new CocoText;
    CocoText = CreateDynamicObject(2789, 2024.81970, -1763.09644, 36.42480,   0.00000, 0.00000, 180.00000);
    SetDynamicObjectMaterialText(CocoText, 0, "Since 1997", OBJECT_MATERIAL_SIZE_256x128, "Tahoma", 50, 1, 0xFFFFFFFF, 0x00000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new CocoText1;
    CocoText1 = CreateDynamicObject(2789, 2034.41565, -1763.20044, 36.42480,   0.00000, 0.00000, 180.00000);
    SetDynamicObjectMaterialText(CocoText1, 0, "100% Quality", OBJECT_MATERIAL_SIZE_256x128, "Tahoma", 45, 1, 0xFFFFFFFF, 0x00000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new CocoText2;
    CocoText2 = CreateDynamicObject(2789, 2032.41565, -1763.20044, 34.5929,   0.00000, 0.00000, 180.00000);
    SetDynamicObjectMaterialText(CocoText2, 0, "Pulaski's", OBJECT_MATERIAL_SIZE_256x128, "Tahoma", 50, 1, 0xFFFFFFFF, 0x00000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new CocoText3;
    CocoText3 = CreateDynamicObject(2789, 2026.81970, -1763.09644, 34.5929,   0.00000, 0.00000, 180.00000);
    SetDynamicObjectMaterialText(CocoText3, 0, "Ammunation", OBJECT_MATERIAL_SIZE_256x128, "Tahoma", 47, 1, 0xFFFFFFFF, 0x00000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new CocoText4;
    CocoText4 = CreateDynamicObject(2789, 2029.61560, -1763.20044, 32.59290,   0.00000, 0.00000, 180.00000);
    SetDynamicObjectMaterialText(CocoText4, 0, "PH: 8756", OBJECT_MATERIAL_SIZE_256x128, "Tahoma", 50, 1, 0xFFFFFFFF, 0x00000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
	return 1;
}
Proof that it loads just fine in the console:


Screenshot of my pawno include folder.



Screenshot of my server's main directory include folder.



I don't know what is wrong, please help me out!
Reply
#2

Hello!

Can you replace your version in this?
PHP код:
public OnFilterScriptInit()
{
    print(
"Start of OnFilterScriptInit");
    new 
CocoText;
    
CocoText CreateDynamicObject(27892024.81970, -1763.0964436.42480,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText0"Since 1997"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText1;
    
CocoText1 CreateDynamicObject(27892034.41565, -1763.2004436.42480,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText10"100% Quality"OBJECT_MATERIAL_SIZE_256x128"Tahoma"4510xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText2;
    
CocoText2 CreateDynamicObject(27892032.41565, -1763.2004434.5929,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText20"Pulaski's"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText3;
    
CocoText3 CreateDynamicObject(27892026.81970, -1763.0964434.5929,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText30"Ammunation"OBJECT_MATERIAL_SIZE_256x128"Tahoma"4710xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText4;
    
CocoText4 CreateDynamicObject(27892029.61560, -1763.2004432.59290,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText40"PH: 8756"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    print(
"End of OnFilterScriptInit");
    return 
1;

What is printing in the console if you start the server?
Reply
#3

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

Can you replace your version in this?
PHP код:
public OnFilterScriptInit()
{
    print(
"Start of OnFilterScriptInit");
    new 
CocoText;
    
CocoText CreateDynamicObject(27892024.81970, -1763.0964436.42480,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText0"Since 1997"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText1;
    
CocoText1 CreateDynamicObject(27892034.41565, -1763.2004436.42480,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText10"100% Quality"OBJECT_MATERIAL_SIZE_256x128"Tahoma"4510xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText2;
    
CocoText2 CreateDynamicObject(27892032.41565, -1763.2004434.5929,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText20"Pulaski's"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText3;
    
CocoText3 CreateDynamicObject(27892026.81970, -1763.0964434.5929,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText30"Ammunation"OBJECT_MATERIAL_SIZE_256x128"Tahoma"4710xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText4;
    
CocoText4 CreateDynamicObject(27892029.61560, -1763.2004432.59290,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText40"PH: 8756"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    print(
"End of OnFilterScriptInit");
    return 
1;

What is printing in the console if you start the server?
This prints

PHP код:

----------
Loaded log file"server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team
[21:25:14
[
21:25:14Server Plugins
[21:25:14] --------------
[
21:25:14]  Loaded 0 plugins.
[
21:25:14
[
21:25:14Filterscripts
[21:25:14] ---------------
[
21:25:14]   Loading filterscript 'gl_actions.amx'...
[
21:25:14]   Loading filterscript 'gl_realtime.amx'...
[
21:25:14]   Loading filterscript 'gl_property.amx'...
[
21:25:14
-----------------------------------
[
21:25:14Grand Larceny Property Filterscript        
[21:25:14] -----------------------------------
[
21:25:14]   Loading filterscript 'gl_mapicon.amx'...
[
21:25:14]   Loading filterscript 'ls_elevator.amx'...
[
21:25:14]   Loading filterscript 'attachments.amx'...
[
21:25:14]   Loading filterscript 'skinchanger.amx'...
[
21:25:14
--
Admin Player Skin Changer Loaded
[21:25:14]   Loading filterscript 'vspawner.amx'...
[
21:25:14
--
Admin Vehicle Spawner Loaded
[21:25:14]   Loading filterscript 'test_cmds.amx'...
[
21:25:14]   Loading filterscript 'ls_mall.amx'...
[
21:25:14]   Loading filterscript 'ls_beachside.amx'...
[
21:25:14
[
21:25:14]   |---------------------------------------------------
[
21:25:14]   |--- LS BeachSide Filterscript
[21:25:14]   |--  Script v1.03
[21:25:14]   |--  19th April 2015
[21:25:14]   |---------------------------------------------------
[
21:25:14]   |--  LS BeachSide Building Elevator created
[21:25:14]   |---------------------------------------------------
[
21:25:14]   Loading filterscript 'Pulaski.amx'...
[
21:25:14]   Loading filterscript 'Pulaski2.amx'...
[
21:25:14]   Loading filterscript 'ste.amx'...
[
21:25:14]   Loaded 14 filterscripts.
[
21:25:14Loaded 3 vehicles fromvehicles/trains.txt
[21:25:14Loaded 3 vehicles fromvehicles/pilots.txt
[21:25:14Loaded 15 vehicles fromvehicles/lv_law.txt
[21:25:14Loaded 39 vehicles fromvehicles/lv_airport.txt
[21:25:14Loaded 255 vehicles fromvehicles/lv_gen.txt
[21:25:14Loaded 38 vehicles fromvehicles/sf_law.txt
[21:25:14Loaded 35 vehicles fromvehicles/sf_airport.txt
[21:25:14Loaded 353 vehicles fromvehicles/sf_gen.txt
[21:25:14Loaded 24 vehicles fromvehicles/ls_law.txt
[21:25:14Loaded 37 vehicles fromvehicles/ls_airport.txt
[21:25:14Loaded 98 vehicles fromvehicles/ls_gen_inner.txt
[21:25:14Loaded 389 vehicles fromvehicles/ls_gen_outer.txt
[21:25:15Loaded 71 vehicles fromvehicles/whetstone.txt
[21:25:15Loaded 168 vehicles fromvehicles/bone.txt
[21:25:15Loaded 61 vehicles fromvehicles/flint.txt
[21:25:15Loaded 96 vehicles fromvehicles/tierra.txt
[21:25:15Loaded 96 vehicles fromvehicles/red_county.txt
[21:25:15Total vehicles from files1781
[21:25:15Reading Fileblank
[21:25:15Reading Fileproperties/houses.txt
[21:25:15Reading Fileproperties/businesses.txt
[21:25:15Reading Fileproperties/banks.txt
[21:25:15Reading Fileproperties/police.txt
[21:25:15
---------------------------------------
[
21:25:15Running Grand Larceny by the SA-MP team
[21:25:15] ---------------------------------------
[
21:25:15Number of vehicle models173 
Reply
#4

You need streamer plugin, download it and add "streamer" to the line "plugins".
Reply
#5

Quote:
Originally Posted by Moudix
Посмотреть сообщение
You need streamer plugin, download it and add "streamer" to the line "plugins".
It wont load.

Reply
#6

I don't know but try this:
PHP код:
#include <a_samp>
#include <streamer>
#include <YSI\y_ini>
#define FILTERSCRIPT
public OnFilterScriptInit()
{
    new 
CocoText;
    
CocoText CreateDynamicObject(27892024.81970, -1763.0964436.42480,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText0"Since 1997"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText1;
    
CocoText1 CreateDynamicObject(27892034.41565, -1763.2004436.42480,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText10"100% Quality"OBJECT_MATERIAL_SIZE_256x128"Tahoma"4510xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText2;
    
CocoText2 CreateDynamicObject(27892032.41565, -1763.2004434.5929,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText20"Pulaski's"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText3;
    
CocoText3 CreateDynamicObject(27892026.81970, -1763.0964434.5929,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText30"Ammunation"OBJECT_MATERIAL_SIZE_256x128"Tahoma"4710xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText4;
    
CocoText4 CreateDynamicObject(27892029.61560, -1763.2004432.59290,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText40"PH: 8756"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    return 
1;

Reply
#7

Quote:
Originally Posted by Stefhan
Посмотреть сообщение
It wont load.

Cmon, open your server.cfg ---> find the line "plugins" --> add near it "streamer".
If you dont have that line then create one at the end
Reply
#8

Quote:
Originally Posted by Mencent
Посмотреть сообщение
I don't know but try this:
PHP код:
#include <a_samp>
#include <streamer>
#include <YSI\y_ini>
#define FILTERSCRIPT
public OnFilterScriptInit()
{
    new 
CocoText;
    
CocoText CreateDynamicObject(27892024.81970, -1763.0964436.42480,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText0"Since 1997"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText1;
    
CocoText1 CreateDynamicObject(27892034.41565, -1763.2004436.42480,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText10"100% Quality"OBJECT_MATERIAL_SIZE_256x128"Tahoma"4510xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText2;
    
CocoText2 CreateDynamicObject(27892032.41565, -1763.2004434.5929,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText20"Pulaski's"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText3;
    
CocoText3 CreateDynamicObject(27892026.81970, -1763.0964434.5929,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText30"Ammunation"OBJECT_MATERIAL_SIZE_256x128"Tahoma"4710xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new 
CocoText4;
    
CocoText4 CreateDynamicObject(27892029.61560, -1763.2004432.59290,   0.000000.00000180.00000);
    
SetDynamicObjectMaterialText(CocoText40"PH: 8756"OBJECT_MATERIAL_SIZE_256x128"Tahoma"5010xFFFFFFFF0x00000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    return 
1;

Didn't fix my issue.
Reply
#9

Quote:
Originally Posted by Moudix
Посмотреть сообщение
Cmon, open your server.cfg ---> find the line "plugins" --> add near it "streamer".
If you dont have that line then create one at the end
Thankyou, didn't know that line existed. Fixed!!!!
Reply
#10

Quote:
Originally Posted by Stefhan
Посмотреть сообщение
Thankyou, didn't know that line existed. Fixed!!!!
Anytime
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)