Hey ehm ich wollte das auch so mit nem gate machen also mit einem command auf/zu.
Das sieht dann so aus :
if(strcmp(cmdtext,"/move",true) == 0)
{
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 )
{
if (PlayerToPoint(5, playerid, 1142.8143,-1298.1726,13.6100))
{
if(TorOffen == false)
{
MoveObject(medicgate,1162.236816, -1292.904175, 12.680368,2.5); // Medic
TorOffen = true;
}
else if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 )
{
if(TorOffen == true)
{
if (PlayerToPoint(5, playerid, 1142.8143,-1298.1726,13.6100)
{
MoveObject(medicgate,1150.749512, -1292.956421, 12.678317,2.5);//medic
TorOffen = false;
}
}
}
}
}
return 1;
}
Dabei bekomme ich folgenden error : ( die warnings sind immer da )
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(463) : warning 213: tag mismatch
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(3890) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(3908) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(3928) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(3946) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(3960) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(6776) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(6780) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8070) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8076) : warning 213: tag mismatch
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8079) : warning 213: tag mismatch
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8083) : warning 213: tag mismatch
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8086) : error 001: expected token: ")", but found "{"
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8088) : warning 213: tag mismatch
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8096) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8136) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8146) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8160) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8161) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(8188) : warning 217: loose indentation
C:\Users\Tim\Desktop\server\filterscripts\gf6.pwn(26387) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
ALs ich es noch ohne playertopoint und pInfo ging es
Hoffe mir kann wer helfen =)