Simple FS won't work
#1

Maps won't load on my server with this code as a filterscript.
Код:
#include <streamer>
#pragma tabsize 0
public OnFilterScriptInit()
{
CreateObject(8556,1147.4000000,-1359.8000000,17.2000000,0.0000000,0.0000000,0.0000000); //object(vgshsegate04) (1)
CreateObject(8314,1086.3000000,-1350.1000000,15.9000000,0.0000000,0.0000000,0.0000000); //object(vgsselecfence17) (1)
CreateObject(969,1137.7000000,-1361.1000000,13.0000000,0.0000000,0.0000000,0.0000000); //object(electricgate) (2)
CreateObject(3031,1100.5000000,-1313.5000000,14.3000000,0.0000000,0.0000000,0.0000000); //object(wong_dish) (1)
CreateObject(3017,1108.9000000,-1316.1000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(arch_plans) (1)
CreateObject(2903,1097.3000000,-1315.4000000,20.4000000,0.0000000,0.0000000,0.0000000); //object(kmb_parachute) (1)
CreateObject(15037,1143.8000000,-1316.5000000,13.0000000,0.0000000,0.0000000,0.0000000); //object(med_dinning_2_sv) (1)
CreateObject(14807,1139.2000000,-1328.4000000,13.9000000,0.0000000,0.0000000,0.0000000); //object(bdupslight01) (1)
CreateObject(8556,1141.4000000,-1303.1000000,17.1000000,0.0000000,0.0000000,0.0000000); //object(vgshsegate04) (2)
CreateObject(2933,1136.2000000,-1305.0000000,14.3000000,0.0000000,0.0000000,0.0000000); //object(pol_comp_gate) (1)
CreateObject(2933,1146.5000000,-1305.7000000,14.3000000,0.0000000,0.0000000,0.0000000); //object(pol_comp_gate) (2)
CreateObject(2617,1115.9000000,-1319.0000000,13.4000000,0.0000000,0.0000000,0.0000000); //object(hotel_single_3) (1)

	return 1;
}
How can I fix this?
Reply
#2

CreateObject to CreateDynamicObject
Note : DRAW distance change it your self depends on what u want
Try this
PHP код:
//CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 300.0); 
PHP код:
CreateDynamicObject(8556,1147.4000000,-1359.8000000,17.2000000,0.0000000,0.0000000,0.0000000); //object(vgshsegate04)(1)
CreateDynamicObject(8314,1086.3000000,-1350.1000000,15.9000000,0.0000000,0.0000000,0.0000000); //object(vgsselecfence17)(1)
CreateDynamicObject(969,1137.7000000,-1361.1000000,13.0000000,0.0000000,0.0000000,0.0000000); //object(electricgate)(2)
CreateDynamicObject(3031,1100.5000000,-1313.5000000,14.3000000,0.0000000,0.0000000,0.0000000); //object(wong_dish)(1)
CreateDynamicObject(3017,1108.9000000,-1316.1000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(arch_plans)(1)
CreateDynamicObject(2903,1097.3000000,-1315.4000000,20.4000000,0.0000000,0.0000000,0.0000000); //object(kmb_parachute)(1)
CreateDynamicObject(15037,1143.8000000,-1316.5000000,13.0000000,0.0000000,0.0000000,0.0000000); //object(med_dinning_2_sv)(1)
CreateDynamicObject(14807,1139.2000000,-1328.4000000,13.9000000,0.0000000,0.0000000,0.0000000); //object(bdupslight01)(1)
CreateDynamicObject(8556,1141.4000000,-1303.1000000,17.1000000,0.0000000,0.0000000,0.0000000); //object(vgshsegate04)(2)
CreateDynamicObject(2933,1136.2000000,-1305.0000000,14.3000000,0.0000000,0.0000000,0.0000000); //object(pol_comp_gate)(1)
CreateDynamicObject(2933,1146.5000000,-1305.7000000,14.3000000,0.0000000,0.0000000,0.0000000); //object(pol_comp_gate)(2)
CreateDynamicObject(2617,1115.9000000,-1319.0000000,13.4000000,0.0000000,0.0000000,0.0000000); //object(hotel_single_3)(1) 
Reply
#3

Thank you! I'll try this.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)