[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
#2

passa a liha 735
Reply
#3

Код:
public SendMensagens()
{
	new string[265];
	new random1 = random(sizeof(Mensagens));
	new random2 = random(sizeof(Cores));
	format(string, sizeof(string), "%s", Mensagens[random1]);
	SendClientMessageToAll(Cores[random2],string);
	SaveAdmin();
	OnPropUpdate();
	SaveCK();
	SaveIRC();
	SavePapers();
	SaveBoxer();
	SaveCars();
	SaveVip();
	LoadAdmin();
	LoadCar();
	LoadVip();
	return 1;
}
Tpw, a Linha 735 й aonde estб escrito LoadCar. Mas tpw, eu copiei as linhas do Infernus Pawn Editor. As linhas de erro estгo erradas ai. So falou uma linha. no Pawno normal, estas sao as de erros:
Код:
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(726) : error 004: function "SaveAdmin" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(732) : error 004: function "SaveCars" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(733) : error 004: function "SaveVip" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(734) : 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(736) : error 004: function "LoadVip" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2137) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2166) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2449) : error 004: function "IsASWATCar" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2462) : error 004: function "DetectorProx" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2507) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2511) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2523) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2527) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2531) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2535) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2539) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2543) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2547) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2559) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2563) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2567) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2571) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2575) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2587) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(2591) : error 004: function "PlayerToPoint" is not implemented

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


26 Errors.
Reply
#4

Creio que Esta Faltando Stock. Adiciona Isso ao Final do GM:

pawn Код:
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        return 1;
    return 0;
}
Procura as Outras Stock:
stock ERRO
Exemplo
stock IsASWATCar
Irб Resolver

Caso Nгo For Tente
pawn Код:
public SendMensagens()
{
    new string[265];
    new random1 = random(sizeof(Mensagens));
    new random2 = random(sizeof(Cores));
    format(string, sizeof(string), "%s", Mensagens[random1]);
    SendClientMessageToAll(Cores[random2],string);
    SaveAdmin();
    OnPropUpdate();
    SaveCK();
    SaveIRC();
    SavePapers();
    SaveBoxer();
    SaveCars();
    SaveVip();
    LoadAdmin();
    LoadCar();
    LoadVip();
    return 1;
}
Reply
#5

Infelizmente ainda estб ocorrendo o mesmo erro. Eu dei um edit no meu post anterior, deem uma olhada na observaзгo. o Infernus pawn editor falou as linhas erradas. As linhas do Pawno (que colokei no post anterior) estгo certas.
Reply
#6

por isso fazer por menu e bem mais facil...
Reply
#7

q tpw, o por dialog keria fazer pq: Os players saberiam aonde ficam todas as orgs, facilitaria o trabalho dos caras da EMTU e SMTP (Transporte), e modernizaria o gm ^^

Bom gente, desculpe pelo double post agora, mas tpw, eu encontrei o erro e arrumei. Estava faltando uma letra no
pawn Код:
if(dialog id).... // Que estava
     if(ialog id)....
Mas, tem um problema, quando descobri esse erro e arrumei, veio outros:
Код:
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(5466) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6701) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6703) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6705) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6709) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6713) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6718) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6721) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6723) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6725) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6729) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6733) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6737) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6741) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6745) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6749) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6753) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6757) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6760) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6762) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6766) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6770) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6775) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6778) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6780) : error 010: invalid function or declaration
C:\Documents and Settings\Marco Antonio\Desktop\LALB.pwn(6782) : error 010: invalid function or declaration

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


26 Errors.
E essas sao suas linhas:
pawn Код:
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;
    }

Peзo que me ajudem novamente com isso, por favor =/ Mto obrigado e desculpe pelo double post novamente =x
Reply
#8

"Bla bla bla desculpa pelo double post". Tinhas que fazer double post passado 23 minutos? Nгo hб desculpa!
Reply
#9

Quote:
Originally Posted by RoamPT
"Bla bla bla desculpa pelo double post". Tinhas que fazer double post passado 23 minutos? Nгo hб desculpa!
Desculpa msm, eh q to precisando mto de ajuda nisso, e q ngm estava respondendo =/
Reply
#10

Mas segue as regras do fуrum, jб disse vбrias vezes, se ninguйm respondeu й porque nгo sabem ou de momento nгo podem responder, por isso aguarda que nгo morres.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)