01.12.2015, 10:31
PHP код:
public OnPlayerUpdate(playerid)
{
if(onetime[playerid]!=0)
{
if(gettime()-onetime[playerid]>=10000)
{
onetime[playerid]=0;
SetPlayerPos(playerid,-315.1715, 1519.6599, 75.2519);
}
else
{
if(IsPlayerInRangeOfPoint(playerid,150,-2636.6272, 1406.4064, 906.2675)==0)
{
SetPlayerPos(playerid,-2636.6272, 1406.4064, 906.2675);
SetPlayerInterior(playerid,3);
}
}
} //<--- Notice the return and the remaining } are gone.
if(twotime[playerid]!=0)
{
if(gettime()-twotime[playerid]>=10000)
{
twotime[playerid]=0;
SetPlayerPos(playerid,-318.3269, 1519.2313, 75.2519);
}
else
{
if(IsPlayerInRangeOfPoint(playerid,150,1205.0674, -8.3971, 1000.6484)==0)
{
SetPlayerPos(playerid,1205.0674, -8.3971, 1000.6484);
SetPlayerInterior(playerid,2);
}
}
}
return 1;
}
It's good to see you are using good indentation.