SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/05/2013, 05:05 PM   #1
Welfare
Little Clucker
 
Join Date: May 2013
Posts: 3
Reputation: 0
Default Failed to load

Hello scripters...
I am welfare and i am new to scripting and generally to this forum
I tried to make a script for my server but fails to load when server starts
The only line that server shows is :

[20:05:14] Loading filterscript 'ctp.amx'...
[20:05:14] Unable to load filterscript 'ctp.amx'.
[20:05:14] Loaded 16 filterscripts.

Yeah...
So here is my script

Code:
#define FILTERSCRIPT

#include <a_samp>

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Custom Teleports and Intro Version");
	print(" LOADED");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	return 1;
}

public OnPlayerConnect(playerid)
{
	TextDrawCreate(320.0, 240.0, "Tsom Servers!");
	PlayAudioStreamForPlayer(playerid, "https://dl.dropboxusercontent.com/u/64201504/introsamp.mp3");
	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("/racetrack1", cmdtext, true, 10))
	{
		SetPlayerPos(playerid, 2990.2653808594, -1098.5991210938, 23.653524398804);
		SendClientMessage(playerid, 0xAA3333AA, "I metafora sas petixe sto racetrack1");
		return 1;
	}

	if (strcmp("/cdrift", cmdtext, true, 10))
	{
		SetPlayerPos(playerid, -547.0327, 1972.2625, 60.2639);
		SendClientMessage(playerid, 0xAA3333AA, "I metafora sas petixe sto cdrift");
		return 1;
	}

	if (strcmp("/racetrack2", cmdtext, true, 10))
	{
		SendClientMessage(playerid, 0xAA3333AA, "I metafora sas petixe sto racetrack2");
		return 1;
	}


	if (strcmp("/skyracing", cmdtext, true, 10))
	{
		SetPlayerPos(playerid, 281,1759.6239,-1793.1274);
		SendClientMessage(playerid, 0xAA3333AA, "I metafora sas petixe sto skyracing");
		return 1;
	}

	if (strcmp("/teleports", cmdtext, true, 10))
	{
		SendClientMessage(playerid, 0xAA3333AA, "Teleports aftin tin stigmi:");
		SendClientMessage(playerid, 0xAA3333AA, "/racetrack1, /cdrift, /skyracing");
		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;
}
What's wrong :/?
Welfare is offline   Reply With Quote
Old 30/05/2013, 05:15 PM   #2
V1ceC1ty
High-roller
 
V1ceC1ty's Avatar
 
Join Date: Oct 2008
Location: West Australia
Posts: 2,060
Reputation: 273
Default Re: Failed to load

http://wiki.sa-mp.com/wiki/Limits

Server Property 0.3x
Gamemodes 16
Filterscripts 16
__________________
No longer active. RIP SA-MP
V1ceC1ty is offline   Reply With Quote
Old 30/05/2013, 05:17 PM   #3
Welfare
Little Clucker
 
Join Date: May 2013
Posts: 3
Reputation: 0
Default Re: Failed to load

Do i need anyone of these :

gl_actions gl_realtime gl_property gl_mapicon ls_mall attachments skinchanger vspawner

?!
Welfare is offline   Reply With Quote
Old 30/05/2013, 05:28 PM   #4
gtakillerIV
High-roller
 
gtakillerIV's Avatar
 
Join Date: Sep 2011
Location: UAE, Sharjah.
Posts: 1,002
Reputation: 201
Default Re: Failed to load

Nah.
gtakillerIV is offline   Reply With Quote
Old 30/05/2013, 05:29 PM   #5
Welfare
Little Clucker
 
Join Date: May 2013
Posts: 3
Reputation: 0
Default Re: Failed to load

Really?! o_O?
Do not try to joke on me...
Nevermind i found a way to do it
Thanks
(can close :P)
Welfare is offline   Reply With Quote
Old 30/05/2013, 05:31 PM   #6
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,981
Reputation: 1392
Default Re: Failed to load

It's not about the limits only, it cannot load the filterscripts due to many reasons. It might not be located to the correct directory, it might not be compiled.

PS: These filterscripts are just for testing, it's not necessary to load them!
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to load houses help!! Simplyfrag Scripting Help 1 03/05/2015 10:28 AM
Need help!! Failed To Load.... ewida Scripting Help 2 17/05/2013 11:44 AM
MySQL Load Failed. X3nZ Server Support 0 10/08/2011 06:42 AM
sscanf2 failed to load admantis Help Archive 9 02/02/2011 01:11 PM
SSCANF Failed to load SamPHP Help Archive 4 30/08/2010 10:54 AM


All times are GMT. The time now is 08:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.