[AJUDA] Algo errado com esse comando?
#1

pawn Код:
if(!strcmp(cmd, "/entrar", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
        {
            SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
            GameTextForPlayer(playerid, "~r~:)", 5000, 1);
        }
    return 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
     {
         SetPlayerInterior(playerid,0);
      SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
      GameTextForPlayer(playerid, "~w~:)", 5000, 1);
}
Algo errado com esse codigo?

pos quando eu coloco no GM os comandos Nгo funcionam...nenhum deles...
Reply
#2

Quote:
Originally Posted by Gabriel6
pawn Код:
if(!strcmp(cmd, "/entrar", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
        {
            SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
            GameTextForPlayer(playerid, "~r~:)", 5000, 1);
        }
    return 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
     {
         SetPlayerInterior(playerid,0);
      SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
      GameTextForPlayer(playerid, "~w~:)", 5000, 1);
}
Algo errado com esse codigo?

pos quando eu coloco no GM os comandos Nгo funcionam...nenhum deles...
pawn Код:
if(!strcmp(cmd, "/entrar", true))
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
        GameTextForPlayer(playerid, "~r~:)", 5000, 1);
    }
    else
    if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
    {
        SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
        GameTextForPlayer(playerid, "~w~:)", 5000, 1);
    }
    return 1;
}
Vocк fechou o comando antes mesmo de terminar de colocar o codigo nele
Reply
#3

Quote:
Originally Posted by [VGS
speliarmos_OC ]
Quote:
Originally Posted by Gabriel6
pawn Код:
if(!strcmp(cmd, "/entrar", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
        {
            SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
            GameTextForPlayer(playerid, "~r~:)", 5000, 1);
        }
    return 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
     {
         SetPlayerInterior(playerid,0);
      SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
      GameTextForPlayer(playerid, "~w~:)", 5000, 1);
}
Algo errado com esse codigo?

pos quando eu coloco no GM os comandos Nгo funcionam...nenhum deles...
pawn Код:
if(!strcmp(cmd, "/entrar", true))
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
        GameTextForPlayer(playerid, "~r~:)", 5000, 1);
    }
    else
    if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
    {
        SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
        GameTextForPlayer(playerid, "~w~:)", 5000, 1);
    }
    return 1;
}
Vocк fechou o comando antes mesmo de terminar de colocar o codigo nele
Continua desabilitando os codigos de baixo
Reply
#4

Cуdigo do nosso amigo estб errado acho que por isto
Код:
if(!strcmp(cmd, "/entrar", true))
{
	if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
	{
		SetPlayerInterior(playerid,0);
		SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
		GameTextForPlayer(playerid, "~r~:)", 5000, 1);
	}
	else
	if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.8438))
 	{
		SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1460.2349,-1011.3485,26.8438);
		GameTextForPlayer(playerid, "~w~:)", 5000, 1);
	}
	return 1;
}
if(!strcmp(cmd, "/entrar", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.843)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1460.2349,-1011.3485,26.843;
GameTextForPlayer(playerid, "~r~", 5000, 1);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0,1460.2349,-1011.3485,26.843)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1460.2349,-1011.3485,26.843;
GameTextForPlayer(playerid, "~w~", 5000, 1);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)