Problem
#1

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
Reply
#2

anybody?
Reply
#3

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

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
Reply
#5

So?
Reply
#6

Nobody can answer? Why is this code wrong?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)