[AJUDA] Algo errado com esse comando? -
Gabriel6 - 01.03.2010
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...
Re: [AJUDA] Algo errado com esse comando? -
speliarmos - 01.03.2010
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
Re: [AJUDA] Algo errado com esse comando? -
Gabriel6 - 02.03.2010
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
Re: [AJUDA] Algo errado com esse comando? -
riad12 - 02.03.2010
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;
}