12.01.2013, 16:40
Hello There
We have new script But we have a problem
gates/doors/cells Wont open
I'll post code here for the doors
Whats the problem When i compile i get only 1 warning
+ That line does not exist!
We have new script But we have a problem
gates/doors/cells Wont open
I'll post code here for the doors
pawn Код:
if (strcmp("/dooropen", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
{
if(PlayerInfo[playerid][pMember] == 14)
{
MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Door0 has been opened.");
}
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
{
if(PlayerInfo[playerid][pMember] == 14)
{
MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Door1 has been opened.");
}
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
{
if(PlayerInfo[playerid][pMember] == 14)
{
MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Door2 has been opened.");
}
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
{
if(PlayerInfo[playerid][pMember] == 14)
{
MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Door3 has been opened.");
}
}
return 1;
}
if (strcmp("/doorclose", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
{
if(PlayerInfo[playerid][pMember] == 14)
{
MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Door0 has been closed.");
}
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
{
if(PlayerInfo[playerid][pMember] == 14)
{
MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Door1 has been closed.");
}
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
{
if(PlayerInfo[playerid][pMember] == 14)
{
MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Door2 has been closed.");
}
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
{
if(PlayerInfo[playerid][pMember] == 14)
{
MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Door3 has been closed.");
}
}
return 1;
}
Код:
InfinitumScript.pwn(73913) : warning 203: symbol is never used: "block" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.