02.03.2010, 14:28
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.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;
}
Код:
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(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;
}