[Ajuda] Erros
#1

Bom, ageitei este comando para somente PM usar, mais qualquer 1 pode, atй civil.

Segue o comando

Код:
		}
		if (PlayerToPoint(2.0, playerid, 1524.4977,-1677.9469,6.2188) || PlayerToPoint(2.0, playerid, 1565.1235,-1666.9944,28.3956) || PlayerToPoint(2.0, playerid, 246.2975,87.4735,1003.6406))
		{

		    if (PlayerInfo[playerid][pMembro] == 1)

		    TogglePlayerControllable(playerid, 0);
    		ShowPlayerDialog(playerid, 2585, DIALOG_STYLE_LIST, "Elevador Policial", "Garagem\nDepartamento\nCobertura", "Confirma", "Cancela");
      		}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "  Vocк nгo й um Policial");
			}
Ainda continua o erro, todos podem usa-lу, como resolver? ;s
Reply
#2

Nossa cara,me desculpa mais que codigo horrivel,Posta ele completo,axo que nao esta completo.
Reply
#3

Mano, o codigo aн й assim у:

Код:
		}
		if (PlayerToPoint(2.0, playerid, 1524.4977,-1677.9469,6.2188) || PlayerToPoint(2.0, playerid, 1565.1235,-1666.9944,28.3956) || PlayerToPoint(2.0, playerid, 246.2975,87.4735,1003.6406))
		{

		    TogglePlayerControllable(playerid, 0);
    		ShowPlayerDialog(playerid, 2585, DIALOG_STYLE_LIST, "Elevador Policial", "Garagem\nDepartamento\nCobertura", "Confirma", "Cancela");
      		}
Eu sу adicionei o
Код:
 		    if (PlayerInfo[playerid][pMembro] == 1)
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "  Vocк nгo й um Policial");
			}
Ajude-me rs.
Reply
#4

coloca no inicio do Comando
if(PlayerInfo[playerid][pMembro] != ID DOS PM) return SendClientMessage(playerid, -1, "Vc nгo й um PM");
Reply
#5

Veja no topo do GM o ID da ORG que vc definiu e poe como o Kuddy flw acima.
Reply
#6

Deu certo Kuddy, sу que deu o seguinte Warning

Код:
warning: 209: function "OnPlayerKeyStateChange" should return a value
Linha:
Код:
 A linha do erro й uma chave
-qq
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)