SA-MP Forums Archive
Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem (/showthread.php?tid=81676)



Problem - FreeSoul - 13.06.2009

Quote:

public PDGates()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if (PlayerToPoint(5,i,1544.755, -1623.9292, 13.352)
{
if(PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pLeader] == 18 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 18 || PlayerInfo[i][pLeader] == 1
{
SetObjectRot(glob0, 0.0, 0.0, 269.818;
SetTimer("lspdbarrierclose", 3000, false);
return 1;
}
}
if (PlayerToPoint(5,i,1586.75, -1638.38, 14))
{
if(PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pMember] == 18 || PlayerInfo[i][pLeader] == 1
{
MoveObject(pdgate,1586.75, -1638.38, 9, 5);
SetTimer("GateClose", 5000, 0);
return 1;
}
}
}
return 1;
}

it doesn't give any errors but it doesn't work. IDk why.
Thanks in advance


Re: Problem - FreeSoul - 13.06.2009

anybody?


Re: Problem - miokie - 13.06.2009

What are you aiming to do in that script?
and what's happening when you try and do it?


Re: Problem - FreeSoul - 13.06.2009

Quote:
Originally Posted by Miokie*
What are you aiming to do in that script?
and what's happening when you try and do it?
When the player is at that point the object moves then closes with that timer


Re: Problem - FreeSoul - 13.06.2009

So?


Re: Problem - FreeSoul - 13.06.2009

Nobody can answer? Why is this code wrong?