20.09.2010, 20:51
I keep getting the loose identation warning for that I think my /exit command isn't working. I'm trying to make a /exit command to exit the big smoke crackpalice. Here's the code:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/me types in the password",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 573.1510,-1570.3528,16.1775))
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,2579.7400,-1301.7866,1060.9922);
}
return 1;
}
//exit of the building (not working)
if(!strcmp("/exit",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 2579.7400,-1301.7866,1060.9922))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,573.1510,-1570.3528,16.1775);
}
return 1;
}
return 0;
}


