help I can't See what i made
#1

um i cant see what i just made and it just shows what you would see on Debug.

Reply
#2

what do you mean
Reply
#3

You could explain what you're talking about.
Reply
#4

ok like what ever i have in my script i go ig and its not there idk why it does that.
Reply
#5

Quote:
Originally Posted by stud4125
ok like what ever i have in my script i go ig and its not there idk why it does that.
What he is saying is that when he loads his script then goes in game everything is just like it would be if it were a blank script. On character selection is shows the elevator in LV. I don't know how to solve his problem, must be something wrong.
Reply
#6

Show your script. I guess it's something dumb like, writing code under '#if defined FILTERSCRIPTS' while it's never defined. That's a common problem for people who don't know what '#if defined' mean.
Reply
#7

how do i do that?
Reply
#8

Post it on http://pastebin.com .
Reply
#9

Ok here it is


Код:
#include <a_samp>
//-----------------------------Teams----------------------------//
#define TEAM_GAYBIKERS 1
#define TEAM_MAFIA 2
 #define TEAM_COPS 3
//-------------------------new things------------------//
new gTeam[MAX_PLAYERS];
new gPlayerClass[MAX_PLAYERS];

forward SendMSG();

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Test for DM By Taylor");
	print("----------------------------------\n");
}

//Color
	#define COLOR_GREY 0xAFAFAFAA
	#define COLOR_GREEN 0x33AA33AA
	#define COLOR_BRIGHTRED 0xFF0000AA
	#define COLOR_YELLOW 0xFFFF00AA
	#define COLOR_PINK 0xFF66FFAA
	#define COLOR_BLUE 0x3A47DEFF
	#define COLOR_TAN 0xBDB76BAA
	#define COLOR_PURPLE 0x800080AA
	#define COLOR_WHITE 0xFFFFFFAA
	#define COLOR_LIGHTBLUE 0x33CCFFAA
	#define COLOR_ORANGE 0xFF9900AA
	#define COLOR_INDIGO 0x4B00B0AA
	#define COLOR_BLACK 0x00000000
	#define COLOR_DARKGREY 0x696969FF

#endif

public OnGameModeInit()
{
	//Misc
	SetGameModeText("Deathmatch Test Server");
	//Classes
	//Bikers
	AddPlayerClass(454,2221.3608,-1152.9364,1025.7969,62.5480,24,100000,31,100000,34,100000); // Biker Spawn)
	AddPlayerClass(248,2221.3608,-1152.9364,1025.7969,62.5480,24,100000,31,100000,34,100000); // Biker Spawn)
	AddPlayerClass(247,2221.3608,-1152.9364,1025.7969,62.5480,24,100000,31,100000,34,100000); // Biker Spawn)
	AddPlayerClass(100,2221.3608,-1152.9364,1025.7969,62.5480,24,100000,31,100000,34,100000); // Biker Spawn)
	// Mafia
	AddPlayerClass(113,1210.7738,-2038.0168,69.0078,277.8583,24,100000,31,100000,34,100000); // Mafia Spawn
	AddPlayerClass(124,1210.7738,-2038.0168,69.0078,277.8583,24,100000,31,100000,34,100000); // Mafia Spawn
	AddPlayerClass(125,1210.7738,-2038.0168,69.0078,277.8583,224,100000,31,100000,34,100000); // Mafia Spawn
	AddPlayerClass(126,1210.7738,-2038.0168,69.0078,277.8583,24,100000,31,100000,34,100000); // Mafia Spawn
	AddPlayerClass(127,1210.7738,-2038.0168,69.0078,277.8583,24,100000,31,100000,34,100000); // Mafia Spawn
	// Police
	AddPlayerClass(284,152.8752,-1678.2114,5.8906,266.3276,24,100000,31,100000,34,100000); // Police Spawn
	AddPlayerClass(285,1527.8752,-1678.2114,5.8906,266.3276,24,100000,31,100000,34,100000); // Police Spawn
	AddPlayerClass(282,1527.8752,-1678.2114,5.8906,266.3276,24,100000,31,100000,34,100000); // Police Spawn
	AddPlayerClass(283,1527.8752,-1678.2114,5.8906,266.3276,24,100000,31,100000,34,100000); // Police Spawn
	AddPlayerClass(280,1527.8752,-1678.2114,5.8906,266.3276,24,100000,31,100000,34,100000); // Police Spawn
	AddPlayerClass(288,1527.8752,-1678.2114,5.8906,266.3276,24,100000,31,100000,34,100000); // Police Spawn
	//Cars
	// Bikers
	AddStaticVehicle(463,2228.7703,-1166.4995,25.4726,90.6169,0,0); // Vehicle ID Bikers
	AddStaticVehicle(463,2205.2522,-1165.1545,25.4733,269.9862,0,0); // Vehicle ID Bikers
  AddStaticVehicle(463,2216.8247,-1157.6108,25.7128,273.3051,0,0); // Vehicle ID Bikers
  AddStaticVehicle(463,2229.1719,-1174.0948,25.2388,277.4169,0,0); // Vehicle ID Bikers
  AddStaticVehicle(463,2227.5496,-1152.9697,25.3720,259.2648,0,0); // Vehicle ID Bikers
	AddStaticVehicle(463,2227.0032,-1157.0759,25.3356,279.7994,0,0); // Vehicle ID Bikers
  // Mafia
  AddStaticVehicle(415,1245.3555,-2032.3484,59.6162,268.8611,65,65); // Vehicle ID Mafia
  AddStaticVehicle(415,1245.4121,-2024.4308,59.6141,270.1391,65,65); // Vehicle ID Mafia
  AddStaticVehicle(415,1245.4121,-2024.4308,59.6141,270.1391,65,65); // Vehicle ID Mafia
  AddStaticVehicle(474,1245.6877,-2021.1234,59.5980,271.8041,65,65); // Vehicle ID Mafia
  AddStaticVehicle(516,1245.1462,-2036.2892,59.6850,271.3014,65,65); // Vehicle ID Mafia
  AddStaticVehicle(521,1251.5332,-2039.9550,59.2286,0.9649,65,65); // Vehicle ID Mafia
  AddStaticVehicle(521,1250.4940,-2040.0988,59.2617,357.0294,65,65); // Vehicle ID Mafia
  AddStaticVehicle(521,1249.6649,-2040.3020,59.2871,1.1626,65,65); // Vehicle ID Mafia
  AddStaticVehicle(598,1542.2108,-1670.0630,5.6369,178.3171,65,65); // Vehicle ID Police
  // Police
	AddStaticVehicle(598,1542.1014,-1661.7574,5.6369,180.1284,0,1); // Vehicle ID Police
	AddStaticVehicle(598,1542.0862,-1655.1777,5.6334,180.1303,0,1); // Vehicle ID Police
	AddStaticVehicle(523,1541.4606,-1706.3080,5.4647,253.5350,0,0); // Vehicle ID Police
	AddStaticVehicle(523,1581.8391,-1623.1227,12.9532,99.8622,0,0); // Vehicle ID Police
	AddStaticVehicle(523,1581.5765,-1619.9436,12.9530,106.6393,0,0); // Vehicle ID Police
	AddStaticVehicle(598,1586.2561,-1621.0205,13.1298,100.2206,0,1); // Vehicle ID Police
	AddStaticVehicle(523,1591.3583,-1620.6279,12.9537,91.4891,0,0); // Vehicle ID Police
	AddStaticVehicle(497,1516.6433,-1658.7487,13.7163,4.3655,0,1); // Vehilce ID Police
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerTeamFromClass(playerid, classid);
	
	gPlayerClass[playerid] = classid;

	switch (classid) 
		{
	case 0, 1, 2, 3:
		  {
				GameTextForPlayer(playerid, "~p~Gay Bikers", 1000, 6);
			}
	case 4, 5, 6, 7 ,8:
	    {
				GameTextForPlayer(playerid, "~t~Mafia", 1000, 6);
			}
	case 9, 10, 11, 12, 13 ,14:
		  {
		  	GameTextForPlayer(playerid, "~b~Police", 1000, 6);
			}
		}

	SetPlayerPos(playerid, 1476.8473,-904.4648,59.6022);
	SetPlayerFacingAngle(playerid, 226.4480);
	SetPlayerCameraPos(playerid, 1478.0815,-907.7310,59.6022);
	SetPlayerCameraLookAt(playerid, 1476.8473,-904.4648,59.6022);
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

SetPlayerTeamFromClass(playerid, classid) {

	if(classid == 0 || classid == 1 || classid == 2 || classid == 3) 
		{
		gTeam[playerid] = TEAM_GAYBIKERS;
		} 
	else if(classid == 4 || classid == 5 || classid == 6 || classid == 7 || classid == 8) 
	{
	  gTeam[playerid] = TEAM_MAFIA;
	}
	else if(classid == 9 || classid == 10 || classid == 11 || classid == 12 || classid == 13 || classid == 14) 
	{
	  gTeam[playerid] = TEAM_COPS;
	}
}

SetPlayerToTeamColour(playerid) 
{
	if(gTeam[playerid] == TEAM_GAYBIKERS) 
	{
		SetPlayerColor(playerid,COLOR_PINK); // Pink
	} 
	else if(gTeam[playerid] == TEAM_MAFIA) 
	{
	  SetPlayerColor(playerid,COLOR_TAN); // Tan
	}
	else if(gTeam[playerid] == TEAM_COPS) 
	{
	  SetPlayerColor(playerid,COLOR_BLUE); // Tan
	}
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	SetPlayerToTeamColour(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 OnPlayerPrivmsg(playerid, recieverid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/teleportme", cmdtext, true, 10) == 0)
	{
	SetPlayerPos(playerid,2221.8127,-1172.7147,25.7266);
	SendClientMessage(playerid, COLOR_YELLOW, "You Just Teleported");
	return 1;
	}
return 1;
}

public OnPlayerInfoChange(playerid)
{
	return 1;
}

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 OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}
Reply
#10

So did you get the script?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)