What's wrong with my friggen filterscript?! -
SuperFiestaKreator - 08.08.2012
Im pissed i speant 9 hours trying to get this shit done! I'm trying to add
http://forum.sa-mp.com/showthread.ph...82#post1719282 And its not fucking working! It's just a mapping code!
Please take a look at my filterscript and I assure you it is 100percent Flawless.
http://www.filedropper.com/idlewoodgasstation
Take a look at it download it! Look at it's code it's flawless I say! but when i go look at it when i load my fucking server, NOTHING NOTHING!!! Im trying to map with a filterscript ive seen people do it.
Respuesta: What's wrong with my friggen filterscript?! -
HydraX - 08.08.2012
Well first of all, you are using both OnGameModeInit and OnFilterscriptInit..
You should Use all of the Objects and add them under OnGameModeInit
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <removebuilding>
#include <streamer>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
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);
CreateDynamicObject(5762, 1918.45, -1776.04, 15.62, 0.00, 0.00, 89.94);
CreateDynamicObject(1532, 1928.36, -1776.72, 12.47, 0.00, 0.00, 89.93);
CreateDynamicObject(12853, 2147.28, -1727.88, 14.42, 0.00, 0.00, 90.63);
CreateDynamicObject(17951, 2151.50, -1732.30, 13.99, 0.00, 0.00, 90.50);
CreateDynamicObject(2942, 2157.98, -1733.14, 13.18, 0.00, 0.00, 0.00);
CreateDynamicObject(1676, 2153.20, -1738.81, 14.06, 0.00, 0.00, 0.00);
CreateDynamicObject(1676, 2141.32, -1739.19, 14.06, 0.00, 0.00, 0.00);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
RemoveBuilding(5535, 1918.8516, -1776.3281, 16.9766, 0.25);
RemoveBuilding(5551, 2140.5156, -1735.1406, 15.8906, 0.25);
RemoveBuilding(1524, 1910.1641, -1779.6641, 18.7500, 0.25);
RemoveBuilding(5681, 1921.4844, -1778.9141, 18.5781, 0.25);
RemoveBuilding(5409, 1918.8516, -1776.3281, 16.9766, 0.25);
RemoveBuilding(1676, 1941.6563, -1778.4531, 14.1406, 0.25);
RemoveBuilding(1676, 1941.6563, -1774.3125, 14.1406, 0.25);
RemoveBuilding(955, 1928.7344, -1772.4453, 12.9453, 0.25);
RemoveBuilding(1676, 1941.6563, -1771.3438, 14.1406, 0.25);
RemoveBuilding(1676, 1941.6563, -1767.2891, 14.1406, 0.25);
RemoveBuilding(5410, 2140.5156, -1735.1406, 15.8906, 0.25);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Re: Respuesta: What's wrong with my friggen filterscript?! -
SuperFiestaKreator - 08.08.2012
Quote:
Originally Posted by HydraX
Well first of all, you are using both OnGameModeInit and OnFilterscriptInit..
You should Use all of the Objects and add them under OnGameModeInit
pawn Код:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT
#include <a_samp> #include <removebuilding> #include <streamer> #if defined FILTERSCRIPT
public OnFilterScriptInit() { return 1; }
public OnFilterScriptExit() { return 1; }
#else
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); CreateDynamicObject(5762, 1918.45, -1776.04, 15.62, 0.00, 0.00, 89.94); CreateDynamicObject(1532, 1928.36, -1776.72, 12.47, 0.00, 0.00, 89.93); CreateDynamicObject(12853, 2147.28, -1727.88, 14.42, 0.00, 0.00, 90.63); CreateDynamicObject(17951, 2151.50, -1732.30, 13.99, 0.00, 0.00, 90.50); CreateDynamicObject(2942, 2157.98, -1733.14, 13.18, 0.00, 0.00, 0.00); CreateDynamicObject(1676, 2153.20, -1738.81, 14.06, 0.00, 0.00, 0.00); CreateDynamicObject(1676, 2141.32, -1739.19, 14.06, 0.00, 0.00, 0.00); return 1; }
public OnGameModeExit() { return 1; }
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; }
public OnPlayerConnect(playerid) { RemoveBuilding(5535, 1918.8516, -1776.3281, 16.9766, 0.25); RemoveBuilding(5551, 2140.5156, -1735.1406, 15.8906, 0.25); RemoveBuilding(1524, 1910.1641, -1779.6641, 18.7500, 0.25); RemoveBuilding(5681, 1921.4844, -1778.9141, 18.5781, 0.25); RemoveBuilding(5409, 1918.8516, -1776.3281, 16.9766, 0.25); RemoveBuilding(1676, 1941.6563, -1778.4531, 14.1406, 0.25); RemoveBuilding(1676, 1941.6563, -1774.3125, 14.1406, 0.25); RemoveBuilding(955, 1928.7344, -1772.4453, 12.9453, 0.25); RemoveBuilding(1676, 1941.6563, -1771.3438, 14.1406, 0.25); RemoveBuilding(1676, 1941.6563, -1767.2891, 14.1406, 0.25); RemoveBuilding(5410, 2140.5156, -1735.1406, 15.8906, 0.25); return 1; }
public OnPlayerDisconnect(playerid, reason) { return 1; }
public OnPlayerSpawn(playerid) { return 1; }
public OnPlayerDeath(playerid, killerid, reason) { return 1; }
public OnVehicleSpawn(vehicleid) { return 1; }
public OnVehicleDeath(vehicleid, killerid) { return 1; }
public OnPlayerText(playerid, text[]) { return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; }
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; }
public OnPlayerExitVehicle(playerid, vehicleid) { return 1; }
public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; }
public OnPlayerEnterCheckpoint(playerid) { return 1; }
public OnPlayerLeaveCheckpoint(playerid) { return 1; }
public OnPlayerEnterRaceCheckpoint(playerid) { return 1; }
public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; }
public OnRconCommand(cmd[]) { return 1; }
public OnPlayerRequestSpawn(playerid) { return 1; }
public OnObjectMoved(objectid) { return 1; }
public OnPlayerObjectMoved(playerid, objectid) { return 1; }
public OnPlayerPickUpPickup(playerid, pickupid) { return 1; }
public OnVehicleMod(playerid, vehicleid, componentid) { return 1; }
public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; }
public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; }
public OnPlayerSelectedMenuRow(playerid, row) { return 1; }
public OnPlayerExitedMenu(playerid) { return 1; }
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; }
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; }
public OnRconLoginAttempt(ip[], password[], success) { return 1; }
public OnPlayerUpdate(playerid) { return 1; }
public OnPlayerStreamIn(playerid, forplayerid) { return 1; }
public OnPlayerStreamOut(playerid, forplayerid) { return 1; }
public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; }
public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; }
public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
|
We'll that didint work, Also im not trying to create a gamemode im trying to make a filterscript. But anyway's Didint work :/ the code you posted
Respuesta: Re: Respuesta: What's wrong with my friggen filterscript?! -
HydraX - 08.08.2012
Quote:
Originally Posted by SuperFiestaKreator
We'll that didint work, Also im not trying to create a gamemode im trying to make a filterscript. But anyway's Didint work :/ the code you posted
|
then..
pawn Код:
#include <a_samp>
#include <removebuilding>
#include <streamer>
public OnFilterScriptInit()
{
CreateDynamicObject(5762, 1918.45, -1776.04, 15.62, 0.00, 0.00, 89.94);
CreateDynamicObject(1532, 1928.36, -1776.72, 12.47, 0.00, 0.00, 89.93);
CreateDynamicObject(12853, 2147.28, -1727.88, 14.42, 0.00, 0.00, 90.63);
CreateDynamicObject(17951, 2151.50, -1732.30, 13.99, 0.00, 0.00, 90.50);
CreateDynamicObject(2942, 2157.98, -1733.14, 13.18, 0.00, 0.00, 0.00);
CreateDynamicObject(1676, 2153.20, -1738.81, 14.06, 0.00, 0.00, 0.00);
CreateDynamicObject(1676, 2141.32, -1739.19, 14.06, 0.00, 0.00, 0.00);
return 1;
}
public OnPlayerConnect(playerid)
{
RemoveBuilding(5535, 1918.8516, -1776.3281, 16.9766, 0.25);
RemoveBuilding(5551, 2140.5156, -1735.1406, 15.8906, 0.25);
RemoveBuilding(1524, 1910.1641, -1779.6641, 18.7500, 0.25);
RemoveBuilding(5681, 1921.4844, -1778.9141, 18.5781, 0.25);
RemoveBuilding(5409, 1918.8516, -1776.3281, 16.9766, 0.25);
RemoveBuilding(1676, 1941.6563, -1778.4531, 14.1406, 0.25);
RemoveBuilding(1676, 1941.6563, -1774.3125, 14.1406, 0.25);
RemoveBuilding(955, 1928.7344, -1772.4453, 12.9453, 0.25);
RemoveBuilding(1676, 1941.6563, -1771.3438, 14.1406, 0.25);
RemoveBuilding(1676, 1941.6563, -1767.2891, 14.1406, 0.25);
RemoveBuilding(5410, 2140.5156, -1735.1406, 15.8906, 0.25);
return 1;
}
..and if that didn't work, did you add the name of the filterscript in server.cfg?
Re: Respuesta: Re: Respuesta: What's wrong with my friggen filterscript?! -
SuperFiestaKreator - 08.08.2012
Quote:
Originally Posted by HydraX
then..
pawn Код:
#include <a_samp> #include <removebuilding> #include <streamer>
public OnFilterScriptInit() { CreateDynamicObject(5762, 1918.45, -1776.04, 15.62, 0.00, 0.00, 89.94); CreateDynamicObject(1532, 1928.36, -1776.72, 12.47, 0.00, 0.00, 89.93); CreateDynamicObject(12853, 2147.28, -1727.88, 14.42, 0.00, 0.00, 90.63); CreateDynamicObject(17951, 2151.50, -1732.30, 13.99, 0.00, 0.00, 90.50); CreateDynamicObject(2942, 2157.98, -1733.14, 13.18, 0.00, 0.00, 0.00); CreateDynamicObject(1676, 2153.20, -1738.81, 14.06, 0.00, 0.00, 0.00); CreateDynamicObject(1676, 2141.32, -1739.19, 14.06, 0.00, 0.00, 0.00); return 1; }
public OnPlayerConnect(playerid) { RemoveBuilding(5535, 1918.8516, -1776.3281, 16.9766, 0.25); RemoveBuilding(5551, 2140.5156, -1735.1406, 15.8906, 0.25); RemoveBuilding(1524, 1910.1641, -1779.6641, 18.7500, 0.25); RemoveBuilding(5681, 1921.4844, -1778.9141, 18.5781, 0.25); RemoveBuilding(5409, 1918.8516, -1776.3281, 16.9766, 0.25); RemoveBuilding(1676, 1941.6563, -1778.4531, 14.1406, 0.25); RemoveBuilding(1676, 1941.6563, -1774.3125, 14.1406, 0.25); RemoveBuilding(955, 1928.7344, -1772.4453, 12.9453, 0.25); RemoveBuilding(1676, 1941.6563, -1771.3438, 14.1406, 0.25); RemoveBuilding(1676, 1941.6563, -1767.2891, 14.1406, 0.25); RemoveBuilding(5410, 2140.5156, -1735.1406, 15.8906, 0.25); return 1; }
..and if that didn't work, did you add the name of the filterscript in server.cfg?
|
NOPE DIDINT EVEN WORK, Sa-mp official hate's me as you see, there is no possible way for it NOT to work. O wait it still dosen't work? I don't belive it myself but the server console even sas it loaded the .amx file HAha some funny shit right? Im really pissed right now.