CMD:chiefdoor(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 1) || PlayerInfo[playerid][pFaction] == 10) {
if(ChiefStatus == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 222.2000000,69.1000000,1004.0000000))
{
MoveObject(ChiefOffice, 222.2000000,67.3000000,1004.0000000, 5);
SendClientMessage(playerid, 0xEF994300, "The door is opening!");
ChiefStatus = 1;
}
else
{
SendClientMessage(playerid, 0xEF994300, "You are not in range of the door / are not in the LSPD or SASD!");
}
}
else if(ChiefStatus == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 222.2000000,69.1000000,1004.0000000))
{
MoveObject(ChiefOffice, 222.2000000,69.1000000,1004.0000000, 5);
SendClientMessage(playerid, 0xEF994300, "The door is closing!");
ChiefStatus = 0;
}
else
{
SendClientMessage(playerid, 0xEF994300, "You are not in range of a door!");
}
}
return 1;
}
if(PlayerInfo[playerid][pFaction] == 1) || PlayerInfo[playerid][pFaction] == 10) {
CMD:chiefdoor(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 10) {
if(ChiefStatus == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 222.2000000,69.1000000,1004.0000000))
{
MoveObject(ChiefOffice, 222.2000000,67.3000000,1004.0000000, 5);
SendClientMessage(playerid, 0xEF994300, "The door is opening!");
ChiefStatus = 1;
}
else
{
SendClientMessage(playerid, 0xEF994300, "You are not in range of the door / are not in the LSPD or SASD!");
}
}
else if(ChiefStatus == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 222.2000000,69.1000000,1004.0000000))
{
MoveObject(ChiefOffice, 222.2000000,69.1000000,1004.0000000, 5);
SendClientMessage(playerid, 0xEF994300, "The door is closing!");
ChiefStatus = 0;
}
else
{
SendClientMessage(playerid, 0xEF994300, "You are not in range of a door!");
}
}
return 1;
}
D:\DOCUME~1\ADMINI~1\Desktop\HRP2\pawno\include\sscanf2.inc(172) : error 017: undefined symbol "SSCANF_OnGameModeInit"
D:\DOCUME~1\ADMINI~1\Desktop\HRP2\pawno\include\sscanf2.inc(203) : error 017: undefined symbol "SSCANF_OnPlayerConnect"
D:\DOCUME~1\ADMINI~1\Desktop\HRP2\pawno\include\sscanf2.inc(227) : error 017: undefined symbol "SSCANF_OnPlayerDisconnect"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(2821) : error 017: undefined symbol "FixHour"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(4905) : error 017: undefined symbol "OnPlayerStatsUpdate"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(5069) : error 017: undefined symbol "AddAutomatedFlag"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(6720) : error 017: undefined symbol "SendEMSQueue"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(7431) : error 017: undefined symbol "NOPCheck"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(7980) : error 017: undefined symbol "ProxDetector"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8494) : error 017: undefined symbol "ProxDetectorS"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8562) : error 017: undefined symbol "ProxDetector"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8569) : error 017: undefined symbol "KillEMSQueue"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8577) : error 017: undefined symbol "ProxDetectorS"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8597) : error 017: undefined symbol "ProxDetectorS"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8598) : error 017: undefined symbol "GetPlayerFreeVehicleId"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8763) : error 017: undefined symbol "OnPlayerStatsUpdate"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8776) : error 017: undefined symbol "OnPlayerStatsUpdate"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8850) : error 017: undefined symbol "ProxDetectorS"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8904) : error 017: undefined symbol "ProxDetector"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(8912) : error 017: undefined symbol "ProxDetector"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(9083) : error 017: undefined symbol "ProxDetectorS"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(9090) : error 017: undefined symbol "ClearMarriage"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(9091) : error 017: undefined symbol "ClearMarriage"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(9108) : error 017: undefined symbol "ProxDetectorS"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(9133) : error 017: undefined symbol "ProxDetectorS"
D:\Documents and Settings\Administrator\Desktop\HRP2\gamemodes\HRP2.pwn(9139) : error 017: undefined symbol "ProxDetectorS"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
CMD:chiefdoor(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 10) {
if(ChiefStatus == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 222.2000000,69.1000000,1004.0000000))
{
MoveObject(ChiefOffice, 222.2000000,67.3000000,1004.0000000, 5);
SendClientMessage(playerid, 0xEF994300, "The door is opening!");
ChiefStatus = 1;
}
else
{
SendClientMessage(playerid, 0xEF994300, "You are not in range of the door / are not in the LSPD or SASD!");
}
}
else if(ChiefStatus == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 222.2000000,69.1000000,1004.0000000))
{
MoveObject(ChiefOffice, 222.2000000,69.1000000,1004.0000000, 5);
SendClientMessage(playerid, 0xEF994300, "The door is closing!");
ChiefStatus = 0;
}
else
{
SendClientMessage(playerid, 0xEF994300, "You are not in range of a door!");
}
}
return 1;
}
}
Does this fix your problem?
pawn Код:
|