Error with Teleport
#1

Hello my friends,
I have a problem.
I have a map and i trying to make a teleport command.
Here is my command:
Код:
#include <a_samp>

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

#if defined FILTERSCRIPT
CreateObject(11095, 2055.849121, 921.298462, 13.383312, 0.000000, 0.000000, 89.999981276); //
CreateObject(1634, 2074.978760, 940.695618, 10.068707, 0.000000, 0.000000, -180.000019848); //
CreateObject(1634, 2038.897339, 940.904663, 10.077339, 0.000000, 0.000000, -180.000019848); //
CreateObject(13641, 2073.871094, 1248.762451, 10.700000, 0.000000, 0.000000, -89.999981276); //
CreateObject(3279, 2102.489746, 936.687317, 9.895929, 0.000000, 0.000000, 0.000000); //
CreateObject(9482, 2147.885010, 963.482239, 16.303825, 0.000000, 0.000000, -89.999981276); //
CreateObject(3528, 2022.627930, 1007.252930, 16.902857, 0.000000, 0.000000, 0.000000); //
CreateObject(3524, 2026.883423, 1014.541321, 12.698034, 0.000000, 0.000000, 78.7500122644); //
CreateObject(3524, 2026.680542, 1000.723145, 12.705652, 0.000000, 0.000000, 78.7500122644); //
CreateObject(1225, 2155.127930, 957.471863, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2155.355469, 953.408691, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2155.087158, 955.496948, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2154.812012, 959.459412, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2155.502930, 950.961426, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(8040, 2197.107178, 3115.989258, 4089.622559, 0.000000, 0.000000, -78.7500122644); //
CreateObject(16358, 2226.822510, 2965.552734, 4057.500000, 0.000000, 344.789499925, -258.750032112); //
CreateObject(16358, 2271.600098, 2740.188477, 3995.000000, 0.000000, 344.789499925, -258.750032112); //
CreateObject(16358, 2316.724121, 2513.682373, 3932.199951, 0.000000, 344.789499925, -258.750032112); //
CreateObject(16358, 2354.300537, 2325.100098, 3809.060059, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2384.000000, 2176.000000, 3624.000000, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2413.632324, 2027.207275, 3439.299072, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2443.312988, 1877.843994, 3253.850098, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2472.979980, 1728.999023, 3069.120117, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2502.000000, 1582.972046, 2887.899902, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2531.196045, 1436.307007, 2705.840088, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2560.499023, 1288.951660, 2522.979980, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2590.073975, 1140.092896, 2338.219971, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2619.620117, 991.763916, 2154.025879, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2649.250000, 842.700012, 1968.998047, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2678.404541, 696.445984, 1787.379028, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2708.071777, 547.513916, 1602.449951, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2737.649902, 398.906006, 1417.959961, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2767.100098, 250.740005, 1233.999023, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2796.550049, 102.355003, 1049.770020, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2826.250000, -47.000000, 864.349976, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2855.899902, -196.000000, 679.359985, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2871.188965, -269.884583, 590.650879, 0.000000, 28.6478897565, -1158.72354611); //
CreateObject(16358, 2861.300049, -220.000000, 582.200012, 0.000000, 0.000000, -78.7500122644); //
CreateObject(16358, 2826.300049, -46.867001, 864.500000, 0.000000, 309.397209371, -258.750032112); //
CreateObject(652, 2219.723145, 3084.299805, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(10838, 2205.245117, 3080.641357, 4106.416992, 0.000000, 0.000000, -78.7500122644); //
CreateObject(4641, 2215.864990, 3080.964600, 4090.553467, 0.000000, 0.000000, -348.749956093); //
CreateObject(4641, 2194.085693, 3076.907471, 4090.553467, 0.000000, 0.000000, -348.749956093); //
CreateObject(968, 2196.234619, 3076.128174, 4088.916260, 0.000000, 0.000000, 11.2500263074); //
CreateObject(968, 2212.552002, 3080.781006, 4088.916260, 0.000000, 0.000000, 11.2500263074); //
CreateObject(1237, 2196.634521, 3075.768555, 4088.859863, 0.000000, 0.000000, 0.000000); //
CreateObject(1237, 2212.587646, 3079.426270, 4088.867432, 0.000000, 0.000000, 0.000000); //
CreateObject(3627, 2190.003174, 3146.482422, 4092.696533, 0.000000, 0.000000, -78.7500122644); //
CreateObject(652, 2187.587646, 3078.176025, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2182.733887, 3104.058594, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2214.963135, 3110.339355, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2210.442871, 3132.149414, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2178.515625, 3126.072754, 4088.945557, 0.000000, 0.000000, 0.000000); //


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	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);
	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 OnPlayerRequestSpawn(playerid)
{
	return 1;
}

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

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		// Do something here
		return 1;
	}
	return 0;
}

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;
}

  if(!strcmp(cmdtext, "/skroad"))
  {
    SetPlayerPos(playerid, 2718.515, 3126.072, 4008.9455);
    SendClientMessage(playerid, , "SKROAD");
    return 1;
  }
and when i try to Complie i have some errors:

C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(233) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(237) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


here is my Script:
Код:
#include <a_samp>

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

#if defined FILTERSCRIPT
CreateObject(11095, 2055.849121, 921.298462, 13.383312, 0.000000, 0.000000, 89.999981276); //
CreateObject(1634, 2074.978760, 940.695618, 10.068707, 0.000000, 0.000000, -180.000019848); //
CreateObject(1634, 2038.897339, 940.904663, 10.077339, 0.000000, 0.000000, -180.000019848); //
CreateObject(13641, 2073.871094, 1248.762451, 10.700000, 0.000000, 0.000000, -89.999981276); //
CreateObject(3279, 2102.489746, 936.687317, 9.895929, 0.000000, 0.000000, 0.000000); //
CreateObject(9482, 2147.885010, 963.482239, 16.303825, 0.000000, 0.000000, -89.999981276); //
CreateObject(3528, 2022.627930, 1007.252930, 16.902857, 0.000000, 0.000000, 0.000000); //
CreateObject(3524, 2026.883423, 1014.541321, 12.698034, 0.000000, 0.000000, 78.7500122644); //
CreateObject(3524, 2026.680542, 1000.723145, 12.705652, 0.000000, 0.000000, 78.7500122644); //
CreateObject(1225, 2155.127930, 957.471863, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2155.355469, 953.408691, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2155.087158, 955.496948, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2154.812012, 959.459412, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2155.502930, 950.961426, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(8040, 2197.107178, 3115.989258, 4089.622559, 0.000000, 0.000000, -78.7500122644); //
CreateObject(16358, 2226.822510, 2965.552734, 4057.500000, 0.000000, 344.789499925, -258.750032112); //
CreateObject(16358, 2271.600098, 2740.188477, 3995.000000, 0.000000, 344.789499925, -258.750032112); //
CreateObject(16358, 2316.724121, 2513.682373, 3932.199951, 0.000000, 344.789499925, -258.750032112); //
CreateObject(16358, 2354.300537, 2325.100098, 3809.060059, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2384.000000, 2176.000000, 3624.000000, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2413.632324, 2027.207275, 3439.299072, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2443.312988, 1877.843994, 3253.850098, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2472.979980, 1728.999023, 3069.120117, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2502.000000, 1582.972046, 2887.899902, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2531.196045, 1436.307007, 2705.840088, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2560.499023, 1288.951660, 2522.979980, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2590.073975, 1140.092896, 2338.219971, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2619.620117, 991.763916, 2154.025879, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2649.250000, 842.700012, 1968.998047, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2678.404541, 696.445984, 1787.379028, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2708.071777, 547.513916, 1602.449951, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2737.649902, 398.906006, 1417.959961, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2767.100098, 250.740005, 1233.999023, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2796.550049, 102.355003, 1049.770020, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2826.250000, -47.000000, 864.349976, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2855.899902, -196.000000, 679.359985, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2871.188965, -269.884583, 590.650879, 0.000000, 28.6478897565, -1158.72354611); //
CreateObject(16358, 2861.300049, -220.000000, 582.200012, 0.000000, 0.000000, -78.7500122644); //
CreateObject(16358, 2826.300049, -46.867001, 864.500000, 0.000000, 309.397209371, -258.750032112); //
CreateObject(652, 2219.723145, 3084.299805, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(10838, 2205.245117, 3080.641357, 4106.416992, 0.000000, 0.000000, -78.7500122644); //
CreateObject(4641, 2215.864990, 3080.964600, 4090.553467, 0.000000, 0.000000, -348.749956093); //
CreateObject(4641, 2194.085693, 3076.907471, 4090.553467, 0.000000, 0.000000, -348.749956093); //
CreateObject(968, 2196.234619, 3076.128174, 4088.916260, 0.000000, 0.000000, 11.2500263074); //
CreateObject(968, 2212.552002, 3080.781006, 4088.916260, 0.000000, 0.000000, 11.2500263074); //
CreateObject(1237, 2196.634521, 3075.768555, 4088.859863, 0.000000, 0.000000, 0.000000); //
CreateObject(1237, 2212.587646, 3079.426270, 4088.867432, 0.000000, 0.000000, 0.000000); //
CreateObject(3627, 2190.003174, 3146.482422, 4092.696533, 0.000000, 0.000000, -78.7500122644); //
CreateObject(652, 2187.587646, 3078.176025, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2182.733887, 3104.058594, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2214.963135, 3110.339355, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2210.442871, 3132.149414, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2178.515625, 3126.072754, 4088.945557, 0.000000, 0.000000, 0.000000); //


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	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);
	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 OnPlayerRequestSpawn(playerid)
{
	return 1;
}

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

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		// Do something here
		return 1;
	}
	return 0;
}

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;
}

  if(!strcmp(cmdtext, "/skroad"))
  {
    SetPlayerPos(playerid, 2718.515, 3126.072, 4008.9455);
    SendClientMessage(playerid, , "SKROAD");
    return 1;
  }
Reply
#2

pawn Код:
#include <a_samp>

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

#if defined FILTERSCRIPT
CreateObject(11095, 2055.849121, 921.298462, 13.383312, 0.000000, 0.000000, 89.999981276); //
CreateObject(1634, 2074.978760, 940.695618, 10.068707, 0.000000, 0.000000, -180.000019848); //
CreateObject(1634, 2038.897339, 940.904663, 10.077339, 0.000000, 0.000000, -180.000019848); //
CreateObject(13641, 2073.871094, 1248.762451, 10.700000, 0.000000, 0.000000, -89.999981276); //
CreateObject(3279, 2102.489746, 936.687317, 9.895929, 0.000000, 0.000000, 0.000000); //
CreateObject(9482, 2147.885010, 963.482239, 16.303825, 0.000000, 0.000000, -89.999981276); //
CreateObject(3528, 2022.627930, 1007.252930, 16.902857, 0.000000, 0.000000, 0.000000); //
CreateObject(3524, 2026.883423, 1014.541321, 12.698034, 0.000000, 0.000000, 78.7500122644); //
CreateObject(3524, 2026.680542, 1000.723145, 12.705652, 0.000000, 0.000000, 78.7500122644); //
CreateObject(1225, 2155.127930, 957.471863, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2155.355469, 953.408691, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2155.087158, 955.496948, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2154.812012, 959.459412, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(1225, 2155.502930, 950.961426, 10.226068, 0.000000, 0.000000, 0.000000); //
CreateObject(8040, 2197.107178, 3115.989258, 4089.622559, 0.000000, 0.000000, -78.7500122644); //
CreateObject(16358, 2226.822510, 2965.552734, 4057.500000, 0.000000, 344.789499925, -258.750032112); //
CreateObject(16358, 2271.600098, 2740.188477, 3995.000000, 0.000000, 344.789499925, -258.750032112); //
CreateObject(16358, 2316.724121, 2513.682373, 3932.199951, 0.000000, 344.789499925, -258.750032112); //
CreateObject(16358, 2354.300537, 2325.100098, 3809.060059, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2384.000000, 2176.000000, 3624.000000, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2413.632324, 2027.207275, 3439.299072, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2443.312988, 1877.843994, 3253.850098, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2472.979980, 1728.999023, 3069.120117, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2502.000000, 1582.972046, 2887.899902, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2531.196045, 1436.307007, 2705.840088, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2560.499023, 1288.951660, 2522.979980, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2590.073975, 1140.092896, 2338.219971, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2619.620117, 991.763916, 2154.025879, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2649.250000, 842.700012, 1968.998047, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2678.404541, 696.445984, 1787.379028, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2708.071777, 547.513916, 1602.449951, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2737.649902, 398.906006, 1417.959961, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2767.100098, 250.740005, 1233.999023, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2796.550049, 102.355003, 1049.770020, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2826.250000, -47.000000, 864.349976, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2855.899902, -196.000000, 679.359985, 0.000000, 309.397209371, -258.750032112); //
CreateObject(16358, 2871.188965, -269.884583, 590.650879, 0.000000, 28.6478897565, -1158.72354611); //
CreateObject(16358, 2861.300049, -220.000000, 582.200012, 0.000000, 0.000000, -78.7500122644); //
CreateObject(16358, 2826.300049, -46.867001, 864.500000, 0.000000, 309.397209371, -258.750032112); //
CreateObject(652, 2219.723145, 3084.299805, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(10838, 2205.245117, 3080.641357, 4106.416992, 0.000000, 0.000000, -78.7500122644); //
CreateObject(4641, 2215.864990, 3080.964600, 4090.553467, 0.000000, 0.000000, -348.749956093); //
CreateObject(4641, 2194.085693, 3076.907471, 4090.553467, 0.000000, 0.000000, -348.749956093); //
CreateObject(968, 2196.234619, 3076.128174, 4088.916260, 0.000000, 0.000000, 11.2500263074); //
CreateObject(968, 2212.552002, 3080.781006, 4088.916260, 0.000000, 0.000000, 11.2500263074); //
CreateObject(1237, 2196.634521, 3075.768555, 4088.859863, 0.000000, 0.000000, 0.000000); //
CreateObject(1237, 2212.587646, 3079.426270, 4088.867432, 0.000000, 0.000000, 0.000000); //
CreateObject(3627, 2190.003174, 3146.482422, 4092.696533, 0.000000, 0.000000, -78.7500122644); //
CreateObject(652, 2187.587646, 3078.176025, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2182.733887, 3104.058594, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2214.963135, 3110.339355, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2210.442871, 3132.149414, 4088.945557, 0.000000, 0.000000, 0.000000); //
CreateObject(652, 2178.515625, 3126.072754, 4088.945557, 0.000000, 0.000000, 0.000000); //


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    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);
    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 OnPlayerRequestSpawn(playerid)
{
    return 1;
}

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

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
  if(!strcmp(cmdtext, "/skroad"))
  {
    SetPlayerPos(playerid, 2718.515, 3126.072, 4008.9455);
    SendClientMessage(playerid, , "SKROAD");
    return 1;
  }
    return 0;
}

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;
}
Take note where I put the command, and put all others below it.
Reply
#3

I get 4 errors:

Код:
C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(160) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(163) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(163) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(163) : error 001: expected token: ";", but found ")"
C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(163) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(163) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

You're trying to send a message without color.
Reply
#5

What can i typ as color?
I have tried with "red" or "#DF1818" but i became errors
Reply
#6

Try this: 0xDF1818AA

You can even define it: #define COLOR_RED 0xDF1818AA
Reply
#7

Geat thanks))))
BUt i have 2 errors?

C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(162) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(16 : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#8

?
Reply
#9

Quote:
Originally Posted by Igdirli 76
Geat thanks))))
BUt i have 2 errors?

C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(162) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(16 : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
You have indentetations that don't need to be, or need further indenting...

You can actually just leave them of fix them...

For this one...

C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(162) : warning 217: loose indentation

go to line 162 and indent or remove the indent. you can fiddle with it...

For this one...

C:\Dokumente und Einstellungen\Agakoc\Eigene Dateien\Eigene Bilder\Freeroam\fgf.pwn(16 : warning 217: loose indentation

Go to line 168, and indent, or remove the indent again...

You may have noticed on your original lines, I changed the color of 162 and 168 to yellow... I did that to show you, whenever an error pops up, it will have an error message, well that position will contain the line number of the problem... So now you can fix it.

Have fun. If you need more help, you can PM me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)