C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9051) : warning 202: number of arguments does not match definition C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9055) : error 055: start of function body without function header C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9056) : error 010: invalid function or declaration C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9065) : error 010: invalid function or declaration C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9076) : error 010: invalid function or declaration C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9077) : error 010: invalid function or declaration C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(961) : warning 204: symbol is assigned a value that is never used: "IsolationVW" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
COMMAND:securitycamera(playerid, params[]) { if(PlayerStat[playerid][FactionID] != 1) return SendClientMessage(playerid, GREY, "You are not a Prison Guard."); //if(IsPlayerInRangeOfPoint(playerid, 8.0, -25.6415,-374.0972,14.9761)) else if(!IsPlayerInRangeOfPoint(playerid, 434.2499,1521.3287,1001.0000)) SendClientMessage(playerid, GREY, "You are not at the Control Room."); return 1; } { if(PlayerStat[playerid][SecurityCameraStatus] == 1) { PlayerStat[playerid][SecurityCameraStatus] = 0; TogglePlayerControllable(playerid, 1); SetCameraBehindPlayer(playerid); GameTextForPlayer(playerid, "~r~Security Camera Disabled.", 3000, 4); PlayerStat[playerid][SecurityCameraNumber] = 0; TextDrawHideForPlayer(playerid, SecurityCameraTextDraw); } else if(PlayerStat[playerid][SecurityCameraStatus] == 0) { PlayerStat[playerid][SecurityCameraStatus] = 1; TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid, -19.8700,-335.8774,10.7141); SetPlayerCameraLookAt(playerid, 7.8794,-371.8924,6.4286); PlayerStat[playerid][SecurityCameraNumber] = 1; GameTextForPlayer(playerid, "~g~Security Camera Enabled.", 3000, 4); TextDrawShowForPlayer(playerid, SecurityCameraTextDraw); } } else return SendClientMessage(playerid, GREY, "You are not at the Control Room."); return 1; }
COMMAND:securitycamera(playerid, params[])
{
if(PlayerStat[playerid][FactionID] != 1) return SendClientMessage(playerid, GREY, "You are not a Prison Guard.");
//if(IsPlayerInRangeOfPoint(playerid, 8.0, -25.6415,-374.0972,14.9761))
else if(!IsPlayerInRangeOfPoint(playerid, 434.2499,1521.3287,1001.0000)) return SendClientMessage(playerid, GREY, "You are not at the Control Room.");
if(PlayerStat[playerid][SecurityCameraStatus] == 1)
{
PlayerStat[playerid][SecurityCameraStatus] = 0;
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
GameTextForPlayer(playerid, "~r~Security Camera Disabled.", 3000, 4);
PlayerStat[playerid][SecurityCameraNumber] = 0;
TextDrawHideForPlayer(playerid, SecurityCameraTextDraw);
}
else if(PlayerStat[playerid][SecurityCameraStatus] == 0)
{
PlayerStat[playerid][SecurityCameraStatus] = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerCameraPos(playerid, -19.8700,-335.8774,10.7141);
SetPlayerCameraLookAt(playerid, 7.8794,-371.8924,6.4286);
PlayerStat[playerid][SecurityCameraNumber] = 1;
GameTextForPlayer(playerid, "~g~Security Camera Enabled.", 3000, 4);
TextDrawShowForPlayer(playerid, SecurityCameraTextDraw);
}
else return SendClientMessage(playerid, GREY, "You are not at the Control Room.");
return 1;
}
try This
PHP код:
|
C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9051) : warning 202: number of arguments does not match definition C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9052) : warning 217: loose indentation C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9071) : warning 217: loose indentation C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9072) : warning 217: loose indentation C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(961) : warning 204: symbol is assigned a value that is never used: "IsolationVW" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Warnings.
COMMAND:securitycamera(playerid, params[])
{
if(PlayerStat[playerid][FactionID] != 1) return SendClientMessage(playerid, GREY, "You are not a Prison Guard.");
if(!IsPlayerInRangeOfPoint(playerid, 434.2499,1521.3287,1001.0000)) return SendClientMessage(playerid, GREY, "You are not at the Control Room.");
if(PlayerStat[playerid][SecurityCameraStatus] == 1)
{
PlayerStat[playerid][SecurityCameraStatus] = 0;
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
GameTextForPlayer(playerid, "~r~Security Camera Disabled.", 3000, 4);
PlayerStat[playerid][SecurityCameraNumber] = 0;
TextDrawHideForPlayer(playerid, SecurityCameraTextDraw);
}
else if(PlayerStat[playerid][SecurityCameraStatus] == 0)
{
PlayerStat[playerid][SecurityCameraStatus] = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerCameraPos(playerid, -19.8700,-335.8774,10.7141);
SetPlayerCameraLookAt(playerid, 7.8794,-371.8924,6.4286);
PlayerStat[playerid][SecurityCameraNumber] = 1;
GameTextForPlayer(playerid, "~g~Security Camera Enabled.", 3000, 4);
TextDrawShowForPlayer(playerid, SecurityCameraTextDraw);
}
return 1;
}
else if(!IsPlayerInRangeOfPoint(playerid, 434.2499,1521.3287,1001.0000)) return SendClientMessage(playerid, GREY, "You are not at the Control Room."); C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9051) : warning 202: number of arguments does not match definition
C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9052) : warning 217: loose indentation C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9071) : warning 217: loose indentation C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9072) : warning 217: loose indentation
C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(961) : warning 204: symbol is assigned a value that is never used: "IsolationVW"
if(!IsPlayerInRangeOfPoint(playerid, 434.2499,1521.3287,1001.0000))
Код:
else if(!IsPlayerInRangeOfPoint(playerid, 434.2499,1521.3287,1001.0000)) return SendClientMessage(playerid, GREY, "You are not at the Control Room."); C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9051) : warning 202: number of arguments does not match definition Код:
C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9052) : warning 217: loose indentation C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9071) : warning 217: loose indentation C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(9072) : warning 217: loose indentation Код:
C:\Users\John\Desktop\Prison RP\gamemodes\PRP.pwn(961) : warning 204: symbol is assigned a value that is never used: "IsolationVW" |