[DUV] GPS
#1

Ai galera, ca estou mais uma vez ^^
Bom, o problema agora й com um comando que eu criei (criei eu falo, codei aki). Uns conhecem, o /gps. Bom,eu tinha ele, e keria colokar ele em DIALOG. Bom, eu aumentei as localizaзхes, colokei as coordenadas certinhas (com as hq das org, com locais importantes, etc etc). Bom, fiz isso e demorei pra caramba. Mas, ai, quando fui colocar no meu gm, apareceu milhares de erros que nunca apareceram:

Код:
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "SaveAdmin" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "SaveCars" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "SaveVip" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "LoadAdmin" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "LoadCar" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "LoadVip" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "IsASWATCar" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "DetectorProx" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(735) : error: 004: function "PlayerToPoint" is not implemented
Bom, eu nao sei o que eu fiz errado, Afina, isso nunca tinha aparecido. Eu baseei esse "comando" no FS Teleport (http://forum.sa-mp.com/index.php?topic=36211.0). Eas coordenadas eu proprio salvei. Bom, venho aqui pedir a ajuda de vocкs. Irei passar o codigo do comando, que criei aki:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  	if(IsPlayerConnected(playerid))
	{
		if (strcmp("/gps", cmdtext, true, 10) == 0)
		{
			ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "GPS - Cidades", "Los Angeles \nSan Francisco \nLas Vegas", "Selecionar", "Cancelar");
			return 1;
	}
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOGID) // GPS Dialog
	{
		if(response)
		{
  			if(listitem == 0) // Los Angeles
			{
				ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Los Angeles", "Lugares Importantes \nGang Zones \nHQ Govs \nHQ Gangs \nHQ Mafias \nHQ Motoqueiros \nHQ Empresas \nVoltar", "Selecionar", "Cancelar");
			}
			if(listitem == 1) // San Francisco
			{
				ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "San Francisco", "Lugares Importantes \nHQ Govs \nVoltar", "Selecionar", "Cancelar");
			}
			if(listitem == 2) // Las Vegas
			{
				ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Las Vegas", "Lugares Importantes \nHQ Mafias \nHQ Terroristas \nHQ Empresas \nVoltar", "Selecionar", "Cancelar");
  			}
		}
		return 1;
	}

	if(dialogid == DIALOGID+1) // Los Angeles
	{
		if(response)
		{
      if(listitem == 0)
			{
				ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, "Lugares Importantes", "Prefeitura \nDelegacia de LA \nHospital \nLoja de Armas \nPosto Sul \nAeroporto de Los Angeles \nRodoviбria de Los Angeles \nBanco", "Selecionar", "Cancelar");
			}
			if(listitem == 1)
			{
				ShowPlayerDialog(playerid, DIALOGID+5, DIALOG_STYLE_LIST, "GangZones", "Morro \nPista de Skate \nShopping Center \n Parque do Aeroporto", "Selecionar", "Cancelar");
			}
			if(listitem == 2)
			{
				ShowPlayerDialog(playerid, DIALOGID+6, DIALOG_STYLE_LIST, "HQ Govs", " \nHQ LAPD \nHQ SWAT \nHQ FBI \nHQ CIA \nHQ Prefeito \nHQ SAMU \nHQ ATP", "Selecionar", "Cancelar");
  			}
      if(listitem == 3)
			{
				ShowPlayerDialog(playerid, DIALOGID+7, DIALOG_STYLE_LIST, "HQ Gangs", " \nHQ Grove \nHQ Balas \nHQ Aztecas \nHQ Vagos \nHQ Calle 18 \nHQ Los Thugas", "Selecionar", "Cancelar");
  			}
      if(listitem == 4)
			{
				ShowPlayerDialog(playerid, DIALOGID+8, DIALOG_STYLE_LIST, "HQ Mafias", " \nHQ Hitmans", "Selecionar", "Cancelar");
  			}
      if(listitem == 5)
			{
				ShowPlayerDialog(playerid, DIALOGID+9, DIALOG_STYLE_LIST, "HQ Motoqueiros", " \nHQ Hell Demons \nHQ Tha Hood Bikes", "Selecionar", "Cancelar");
  			}
      if(listitem == 6)
			{
				ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_LIST, "HQ Empresas", " \nHQ SMTP \nHQ LA News", "Selecionar", "Cancelar");
      }
      if(listitem == 7)
			{
				ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "GPS - Cidades", "Los Angeles \nSan Francisco \nLas Vegas", "Selecionar", "Cancelar");
      }
		return 1;
	}

	if(dialogid == DIALOGID+2) // San Francisco
	{
      if(listitem == 0)
			{
				ShowPlayerDialog(playerid, DIALOGID+11, DIALOG_STYLE_LIST, "Lugares Importantes", "Delegacia de SF \nHospital \nLoja de Armas \nPosto da Rodoviбria \nAeroporto de San Francisco \nRodoviбria de San Francisco", "Selecionar", "Cancelar");
			}
  			if(listitem == 1)
			{
				ShowPlayerDialog(playerid, DIALOGID+12, DIALOG_STYLE_LIST, "HQ Govs", " \nHQ ACADEPOL", "Selecionar", "Cancelar");
  			}
      if(listitem == 2)
			{
				ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "GPS - Cidades", "Los Angeles \nSan Francisco \nLas Vegas", "Selecionar", "Cancelar");
      }
		}
		return 1;
	}

	if(dialogid == DIALOGID+3) // Las Vegas
	{
 if(response)
		{
      if(listitem == 0)
			{
				ShowPlayerDialog(playerid, DIALOGID+13, DIALOG_STYLE_LIST, "Lugares Importantes", "Aeroporto de Las Vegas \nRodoviбria de Las Vegas", "Selecionar", "Cancelar");
			}
      if(listitem == 1)
			{
				ShowPlayerDialog(playerid, DIALOGID+14, DIALOG_STYLE_LIST, "HQ Mafias", "HQ Yakuza \nHQ Cosa Nostra", "Selecionar", "Cancelar");
  			}
      if(listitem == 2)
			{
				ShowPlayerDialog(playerid, DIALOGID+15, DIALOG_STYLE_LIST, "HQ Terroristas", "HQ Al Qaeda \nHQ Hamas", "Selecionar", "Cancelar");
  			}
      if(listitem == 3)
			{
				ShowPlayerDialog(playerid, DIALOGID+16, DIALOG_STYLE_LIST, "HQ Empresas", " \nHQ EMTU", "Selecionar", "Cancelar");
      }
      if(listitem == 4)
			{
				ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "GPS - Cidades", "Los Angeles \nSan Francisco \nLas Vegas", "Selecionar", "Cancelar");
      }
		}
		return 1;
	}

  if(dialogid == DIALOGID+4) // Locais Importantes de LA
	{
		if(response)
		{
  			if(listitem == 0) // Prefeitura
      {
      SetPlayerCheckpoint(playerid, 1481.1926,-1764.2736,18.7958,8.0);
      }
			if(listitem == 1) // DP
			{
			SetPlayerCheckpoint(playerid, 1546.2761,-1675.5995,13.5620,8.0);
      }
			if(listitem == 2) // Hospital
			{
      SetPlayerCheckpoint(playerid, 1177.1616,-1322.9232,14.0570,8.0);
      }
      if(listitem == 3) // Loja de Armas
			{
      SetPlayerCheckpoint(playerid, 1791.2120,-1164.6317,23.8281,8.0);
      }
      if(listitem == 4) // Posto Sul
			{
      SetPlayerCheckpoint(playerid, 1928.826904,-1776.405517,13.546895,8.0);
      }
      if(listitem == 5) // Aeroporto de Los Angeles
			{
      SetPlayerCheckpoint(playerid, 1642.3022,-2333.6287,13.5469,8.0);
      }
      if(listitem == 6) // Rodoviбria de Los Angeles
			{
      SetPlayerCheckpoint(playerid, 1259.5575,-1813.0543,13.4088,8.0);
      }
      if(listitem == 7) // Banco
			{
      SetPlayerCheckpoint(playerid, 1471.3004,-1023.3445,23.8331,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+5) // GangZones de LA
	{
		if(response)
		{
  			if(listitem == 0) // Morro
      {
      SetPlayerCheckpoint(playerid, 2164.6309,-1002.4444,62.7952,8.0);
      }
			if(listitem == 1) // Pista de Skate
			{
			SetPlayerCheckpoint(playerid, 1887.1669,-1382.9319,13.5729,8.0);
      }
			if(listitem == 2) // Shopping Center
			{
      SetPlayerCheckpoint(playerid, 1123.3188,-1458.9758,15.7969,8.0);
      }
      if(listitem == 3) // Parque do Aeroporto
			{
      SetPlayerCheckpoint(playerid, 1446.1504,-2286.0488,13.5469,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+6) // GangZones de LA
	{
		if(response)
		{
  			if(listitem == 0) // HQ LAPD
      {
      SetPlayerCheckpoint(playerid, 1546.2761,-1675.5995,13.5620,8.0);
      }
			if(listitem == 1) // HQ SWAT
			{
			SetPlayerCheckpoint(playerid, 331.1495,-1518.7190,35.8672,8.0);
      }
			if(listitem == 2) // HQ FBI
			{
      SetPlayerCheckpoint(playerid, 1248.4198,-1565.5621,13.5720,8.0);
      }
      if(listitem == 3) // HQ CIA
			{
      SetPlayerCheckpoint(playerid, 2714.1753,-2408.3420,13.4609,8.0);
      }
      if(listitem == 4) // HQ Prefeito
			{
			SetPlayerCheckpoint(playerid, 1287.6056,-2058.7278,58.6620,8.0);
      }
			if(listitem == 5) // HQ SAMU
			{
      SetPlayerCheckpoint(playerid, 927.9727,-1223.0706,16.9442,8.0);
      }
      if(listitem == 6) // HQ ATP
			{
      SetPlayerCheckpoint(playerid, 1183.8523,-1323.6375,13.5759,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+7) // GangZones de LA
	{
		if(response)
		{
  			if(listitem == 0) // HQ Grove
      {
      SetPlayerCheckpoint(playerid, 2504.7832,-1670.1439,13.3680,8.0);
      }
			if(listitem == 1) // HQ Balas
			{
			SetPlayerCheckpoint(playerid, 1325.2340,-854.3051,39.5781,8.0);
      }
			if(listitem == 2) // HQ Aztecas
			{
      SetPlayerCheckpoint(playerid, 1882.2903,-2028.5592,13.3906,8.0);
      }
      if(listitem == 3) // HQ Vagos
			{
      SetPlayerCheckpoint(playerid, 2350.9246,-1156.4365,27.2148,8.0);
      }
      if(listitem == 4) // HQ Calle 18
			{
			SetPlayerCheckpoint(playerid, 2178.2263,-1797.8998,13.3637,8.0);
      }
			if(listitem == 5) // HQ Los Thugas
			{
      SetPlayerCheckpoint(playerid, 1793.1675,-1696.4805,13.5086,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+8) // Mafias de LA
	{
		if(response)
		{
  			if(listitem == 0) // HQ Hitmans
      {
      SetPlayerCheckpoint(playerid, 969.3419,-1527.7782,13.5643,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+9) // Motoqueiros de LA
	{
		if(response)
		{
  			if(listitem == 0) // Hell Demons
      {
      SetPlayerCheckpoint(playerid, 203.1198,-260.9980,1.5781,8.0);
      }
      if(listitem == 1) // Tha Hood Bikes
      {
      SetPlayerCheckpoint(playerid, 991.4978,-1445.4434,13.5469,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+10) // Empresas de LA
	{
		if(response)
		{
  			if(listitem == 0) // SMTP
      {
      SetPlayerCheckpoint(playerid, 1816.9794,-1889.2573,13.4177,8.0);
      }
      if(listitem == 1) // LA News
      {
      SetPlayerCheckpoint(playerid, 757.5735,-1350.4174,13.5158,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+11) // Lugares Importantes de SF
	{
		if(response)
		{
  			if(listitem == 0) // Delegacia de SF
      {
      SetPlayerCheckpoint(playerid, -1607.4043,725.0956,12.1538,8.0);
      }
      if(listitem == 1) // Aeroporto de SF
      {
      SetPlayerCheckpoint(playerid, -1420.4226,-302.2920,14.0000,8.0);
      }
      if(listitem == 2) // Rodoviaria de SF
      {
      SetPlayerCheckpoint(playerid, -1983.0986,139.0150,27.6875,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+12) // HQ Govs de SF
	{
		if(response)
		{
  			if(listitem == 0) // HQ ACADEPOL
      {
      SetPlayerCheckpoint(playerid, -1607.4043,725.0956,12.1538,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+13) // Lugares Importantes
	{
		if(response)
		{
  			if(listitem == 0) // Aero de LV
      {
      SetPlayerCheckpoint(playerid, 1709.4423,1441.9155,10.6476,8.0);
      }
      if(listitem == 1) // Rodoviaria de LV
      {
      SetPlayerCheckpoint(playerid, 2577.3435,1825.8475,10.8203,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+14) // HQ Mafias
	{
		if(response)
		{
  			if(listitem == 0) // HQ Yakuza
      {
      SetPlayerCheckpoint(playerid, 2030.1622,1008.2082,10.8203,8.0);
      }
      if(listitem == 1) // HQ Cosa Nostra
      {
      SetPlayerCheckpoint(playerid, 2160.7507,1681.7930,10.6953,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+15) // HQ Terrorista
	{
		if(response)
		{
  			if(listitem == 0) // HQ Al Qaeda
      {
      SetPlayerCheckpoint(playerid, 392.3632,2509.8647,16.4844,8.0);
      }
      if(listitem == 1) // HQ Hamas
      {
      SetPlayerCheckpoint(playerid, -329.0098,1736.0530,42.6875,8.0);
      }
		}
		return 1;
	}
  if(dialogid == DIALOGID+16) // HQ Empresas
	{
		if(response)
		{
  			if(listitem == 0) // HQ EMTU
      {
      SetPlayerCheckpoint(playerid, 2574.9871,1691.6111,10.8203,8.0);
      }
		}
		return 1;
	}
	return 0;
 }
Por favor, me ajudem . Mto obrigado ^^
Reply


Messages In This Thread
[DUV] GPS - by Scratchy_Nutz - 15.05.2010, 20:58
Re: [DUV] GPS - by lomato - 15.05.2010, 21:06
Re: [DUV] GPS - by Scratchy_Nutz - 15.05.2010, 21:15
Re: [DUV] GPS - by ipsBruno - 15.05.2010, 21:18
Re: [DUV] GPS - by Scratchy_Nutz - 15.05.2010, 21:21
Re: [DUV] GPS - by lomato - 15.05.2010, 21:55
Re: [DUV] GPS - by Scratchy_Nutz - 15.05.2010, 22:00
Re: [DUV] GPS - by RoamPT - 15.05.2010, 22:27
Re: [DUV] GPS - by Scratchy_Nutz - 15.05.2010, 22:32
Re: [DUV] GPS - by RoamPT - 15.05.2010, 22:34

Forum Jump:


Users browsing this thread: 2 Guest(s)