Jump to content
  • 0

Problema


Gabriel19

Question

Am si eu o problema cu un FS de al lui RazR cand dau complinare imi apare erorile acestea

C:\DOCUME~1\test\MYDOCU~1\DOWNLO~1\basic.pwn(302) : warning 202: number of arguments does not match definition
C:\DOCUME~1\test\MYDOCU~1\DOWNLO~1\basic.pwn(302) : warning 202: number of arguments does not match definition
C:\DOCUME~1\test\MYDOCU~1\DOWNLO~1\basic.pwn(307) : warning 202: number of arguments does not match definition
C:\DOCUME~1\test\MYDOCU~1\DOWNLO~1\basic.pwn(307) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Warnings.
Acesta este FS
/*[FS]Basic by RazR */
//This filterscripts help you to run [GM]Romanian RPG

#include <a_samp>
#include <core>
#include <float>
#include <k_functions>

#define FILTERSCRIPT
#pragma tabsize 0

#if defined FILTERSCRIPT

#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_GREEN 0x33FF00AA
#define COLOR_CYAN 0x33FFFFAA
#define COLOR_ORANGE 0xFFCC00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_BLACK 0x000000AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_BRIGHTRED 0xFF0000AA
#define Text_Under_Minimap "                 ~w~Forum ~r~http://romania.hitforum.ro/"
#define Text_Logo "Romanian RPG"

forward CloseAPGate(airportid, playerid);
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward CheckAPGates();
forward logoanim();
forward logoanim2();
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
forward lspdbarrierclose();
forward lspdgateclose();
forward sfpdgateclose();
forward IsACopCar(carid);

new LSPDGate;
new SFPDGatea;
new SFPDGateb;
new LSPDBarrier;
new Text:logo;
new lsapg1, lsapg2;
new sf1apg1, sf1apg2;
new sf2apg1, sf2apg2;
new lvapg1, lvapg2;
//----------------------------------------------------------------------------------------------//
stock IsPlayerInCopCar(playerid)// Portile de polite se deschide numai la masiniile de politie
{
    #define MAX_COPCAR 10
    new CopCar[] ={427,428,470,490,523,528,596,597,598,599,601};
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInVehicle(playerid,vehicleid))
    {
                for(new i = 0; i < sizeof(CopCar); i++)
                {
                    if(GetVehicleModel(vehicleid) == CopCar[i])
                    {
                        return true;
                    }
                }
    }
    return false;
}
//---------------------------------------------------------------------------------------//

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Romanian RPG Basic - By RazR");
	print("--------------------------------------\n");
	//----------------------------------------------------------------------------------------------
	lsapg1 = CreateObject(988, 1964.342, -2189.776, 13.533, 0, 0, 180.0);
	lsapg2 = CreateObject(988, 1958.851, -2189.777, 13.553, 0, 0, 180.0);
	//----------------------------------------------------------------------------------------------
	sf1apg1 = CreateObject(988, -1543.742, -432.703, 6.039, 0, 0, -45.0);
	sf1apg2 = CreateObject(988, -1547.625, -428.82, 6.039, 0, 0, -45.0);
	//----------------------------------------------------------------------------------------------
	sf2apg1 = CreateObject(988, -1222.953, 53.826, 14.134, 0, 0, -135.0);
	sf2apg2 = CreateObject(988, -1218.206, 68.883, 14.134, 0, 0, -135.0);
	//----------------------------------------------------------------------------------------------
	lvapg1 = CreateObject(988, 1704.777, 1605.165, 10.058, 0, 0, 73.0);
	lvapg2 = CreateObject(988, 1706.364, 1610.422, 10.058, 0, 0, 73.0);
	//----------------------------------------------------------------------------------------------
	LSPDBarrier = CreateObject(968,1544.755004,-1623.929199,13.352820,0.000000,89.000000,269.818847);
	LSPDGate = CreateObject(980,1588.265991,-1638.143554,15.014236,0.000000,0.000000,0.675605);
	//----------------------------------------------------------------------------------------------
	SFPDGatea = CreateObject(969,-1631.741455,688.129028,6.303413,0.000000,0.000000,0.000000);
	SFPDGateb = CreateObject(969,-1639.915405,688.129028,6.303413,0.000000,0.000000,0.000000);
	//----------------------------------------------------------------------------------------------
	SetTimer("CheckAPGates", 1000, 1);
	SetTimer("logoanim",3000,true);
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

#endif




public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp("/openbarrier", cmdtext, true) == 0)
	{
   		GetPlayerSkin(playerid);
		if(IsPlayerSkin(playerid, 280) || IsPlayerSkin(playerid, 281) || IsPlayerSkin(playerid, 282) || IsPlayerSkin(playerid, 283) || IsPlayerSkin(playerid, 288) || IsPlayerSkin(playerid, 284) || IsPlayerSkin(playerid, 285) || IsPlayerSkin(playerid, 286) || IsPlayerSkin(playerid, 287) || IsPlayerSkin(playerid, 163) || IsPlayerSkin(playerid, 164))
		{
   			SetObjectRot(LSPDBarrier,0.000000,0.000000,269.818847);
   			SendClientMessage(playerid, 0xAAAAAAAA, "   LSPD barrier opened !");
  	 		SetTimer("lspdbarrierclose",4000, false);
  		}
		else
		{
			SendClientMessage(playerid, 0xAAAAAAAA,"   You have to be a Cop/FBI/NG to open this barrier !");
		}
	}
	if(strcmp("/openlsgate", cmdtext, true) == 0)
   	{
   		GetPlayerSkin(playerid);
		if(IsPlayerSkin(playerid, 280) || IsPlayerSkin(playerid, 281) || IsPlayerSkin(playerid, 282) || IsPlayerSkin(playerid, 283) || IsPlayerSkin(playerid, 288) || IsPlayerSkin(playerid, 284) || IsPlayerSkin(playerid, 285) || IsPlayerSkin(playerid, 286) || IsPlayerSkin(playerid, 287) || IsPlayerSkin(playerid, 163) || IsPlayerSkin(playerid, 164))
   		{
   			MoveObject(LSPDGate, 1597.288696, -1637.887085, 14.706839, 4.0);
   			SendClientMessage(playerid, 0xAAAAAAAA, "   LSPD gate opened !");
   			SetTimer("lspdgateclose",4000, false);
		}
		else
		{
			SendClientMessage(playerid, 0xAAAAAAAA,"   You have to be a Cop/FBI/NG to open this gate !");
		}
	}
	if(strcmp("/opensfgate", cmdtext, true) == 0)
   	{
   		GetPlayerSkin(playerid);
		if(IsPlayerSkin(playerid, 280) || IsPlayerSkin(playerid, 281) || IsPlayerSkin(playerid, 282) || IsPlayerSkin(playerid, 283) || IsPlayerSkin(playerid, 288) || IsPlayerSkin(playerid, 284) || IsPlayerSkin(playerid, 285) || IsPlayerSkin(playerid, 286) || IsPlayerSkin(playerid, 287) || IsPlayerSkin(playerid, 163) || IsPlayerSkin(playerid, 164))
		{
   			MoveObject(SFPDGatea, -1624.119384, 688.126037, 6.303413, 4.0);
   			MoveObject(SFPDGateb, -1648.143554, 688.126037, 6.303413, 4.0);
   			SendClientMessage(playerid, 0xAAAAAAAA, "   SFPD gate opened !");
   			SetTimer("sfpdgateclose",4000, false);
		}
		else
		{
		SendClientMessage(playerid, 0xAAAAAAAA,"   You have to be a Cop/FBI/NG to open this gate !");
		}
	}
}


public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
		new Float:oldposx, Float:oldposy, Float:oldposz;
		new Float:tempposx, Float:tempposy, Float:tempposz;
		GetPlayerPos(playerid, oldposx, oldposy, oldposz);
		tempposx = (oldposx -x);
		tempposy = (oldposy -y);
		tempposz = (oldposz -z);
		//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
		{
			return 1;
		}
		return 0;
}

public CheckAPGates()
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
		if (IsPlayerConnected(i)) {
		    new Float:x, Float:y, Float:z;
			GetPlayerPos(i, Float:x, Float:y, Float:z);
	    	if (PlayerToPoint(30.0, i, 1961.634, -2189.7765, 13.553)) 	// LSA
	    	{
				MoveObject(lsapg1, 1968.697, -2189.776, 13.553, 3);
				MoveObject(lsapg2, 1954.571, -2189.777, 13.553, 3);
				SetTimerEx("CloseAPGate", 3000,0, "ii", 1, i);
			}

	  	 	if (PlayerToPoint(30.0, i, -1545.6835, -430.7615, 6.039)) 	// SFA 1
	 	   	{
				MoveObject(sf1apg1, -1540.66, -435.786, 6.039, 3);
				MoveObject(sf1apg2, -1550.709, -425.736, 6.039, 3);
				SetTimerEx("CloseAPGate", 3000,0, "ii", 21, i);
			}

	    	if (PlayerToPoint(30.0, i, -1220.491, 61.443, 14.134)) 		// SFA 2
	    	{
				MoveObject(sf2apg1, -1226.59, 50.189, 14.134, 3);
				MoveObject(sf2apg2, -1214.392, 72.697, 14.134, 3);
				SetTimerEx("CloseAPGate", 3000,0, "ii", 22, i);
			}

	    	if (PlayerToPoint(30.0, i, 1705.5705, 1607.7935, 10.058)) 	// LVA
	    	{
				MoveObject(lvapg1, 1703.4, 1600.518, 10.058, 3);
				MoveObject(lvapg2, 1707.722, 1614.937, 10.058, 3);
				SetTimerEx("CloseAPGate", 3000,0, "ii", 3, i);
			}
		}
	}
}

public CloseAPGate(airportid, playerid)
{
	new Float:x, Float:y, Float:z; GetPlayerPos(playerid, Float:x, Float:y, Float:z);

	// LSA
	if (airportid == 1 && !PlayerToPoint(30.0, playerid, 1961.634, -2189.7765, 13.553))
	{
		MoveObject(lsapg1, 1964.342, -2189.776, 13.533, 3);
		MoveObject(lsapg2, 1958.851, -2189.777, 13.553, 3);
	}

	// SFA 1
	if (airportid == 21 && !PlayerToPoint(30.0, playerid, -1545.6835, -430.7615, 6.039))
	{
		MoveObject(sf1apg1, -1543.742, -432.703, 6.039, 3);
		MoveObject(sf1apg2, -1547.625, -428.82, 6.039, 3);
	}

	// SFA 2
	if (airportid == 22 && !PlayerToPoint(30.0, playerid, -1220.491, 61.443, 14.134))
	{
		MoveObject(sf2apg1, -1222.953, 53.826, 14.134, 3);
		MoveObject(sf2apg2, -1218.206, 68.883, 14.134, 3);
	}

	// LVA
	if (airportid == 3 && !PlayerToPoint(30.0, playerid, 1705.5705, 1607.7935, 10.058))
	{
		MoveObject(lvapg1, 1704.777, 1605.165, 10.058, 3);
		MoveObject(lvapg2, 1706.364, 1610.422, 10.058, 3);
	}

}

public logoanim()
{
    TextDrawDestroy(logo);
    SetTimer("logoanim2",3000,false);
}

public logoanim2()
{
	logo = TextDrawCreate(500.0, 5.0,Text_Logo);
	TextDrawFont(logo, 0);
	TextDrawColor(logo,0xD2B586FF);
	TextDrawLetterSize(logo, 0.7, 1);
	TextDrawShowForAll(logo);
    SetTimer("logoanim",5000,false);
}

public lspdbarrierclose()
{
	SetObjectRot(LSPDBarrier,0.000000,89.000000,269.818847);
}

public lspdgateclose()
{
	MoveObject(LSPDGate, 1588.265991,-1638.143554,15.014236, 3.0);
}

public sfpdgateclose()
{
	MoveObject(SFPDGatea, -1631.741455,688.129028,6.303413, 3.0);
	MoveObject(SFPDGateb, -1639.915405,688.129028,6.303413, 3.0);
}

forward closelsdgate();
public closelsdgate()
{
MoveObject(SFPDGatea, -1631.741455,688.129028,6.303413, 3.0);
MoveObject(SFPDGateb, -1639.915405,688.129028,6.303413, 3.0);
MoveObject(LSPDGate, 1588.265991,-1638.143554,15.014236, 3.0);
SetObjectRot(LSPDBarrier,0.000000,89.000000,269.818847);
return 1;
}
//-------------------------------------------------------------------------------------------------------------------
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
	{
    if ((newkeys==KEY_CROUCH)&& (IsPlayerInCopCar(playerid))&& (GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
	return 1;
	{
   	if (PlayerToPoint(15, playerid,1588.2043,-1632.5975,13.1026) || 	    	   	   
	    PlayerToPoint(15, playerid,-1630.5527,682.8549,7.3838))
	{
		MoveObject(SFPDGatea, -1624.119384, 688.126037, 6.303413, 4.0);
   		MoveObject(SFPDGateb, -1648.143554, 688.126037, 6.303413, 4.0);
		MoveObject(LSPDGate, 1597.288696, -1637.887085, 14.706839, 4.0);
		SetTimer("closelsdgate,3000.0");
	}
	if (PlayerToPoint(15, playerid,1541.8696,-1628.0836,13.3828))
	{    	
		SetObjectRot(LSPDBarrier,0.000000,0.000000,269.818847);
		SetTimer("closelsdgate,3000.0");
	}

	return 1;

    }
    }

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.