Help me with this error
#6

Quote:
Originally Posted by DandyCorleone
Посмотреть сообщение
try This

PHP код:

COMMAND
:securitycamera(playeridparams[])
{
    if(
PlayerStat[playerid][FactionID] != 1) return SendClientMessage(playeridGREY"You are not a Prison Guard.");
    
//if(IsPlayerInRangeOfPoint(playerid, 8.0, -25.6415,-374.0972,14.9761))
    
else if(!IsPlayerInRangeOfPoint(playerid434.2499,1521.3287,1001.0000)) return SendClientMessage(playeridGREY"You are not at the Control Room.");
        if(
PlayerStat[playerid][SecurityCameraStatus] == 1)
        {
           
PlayerStat[playerid][SecurityCameraStatus] = 0;
           
TogglePlayerControllable(playerid1);
           
SetCameraBehindPlayer(playerid);
           
GameTextForPlayer(playerid"~r~Security Camera Disabled."30004);
           
PlayerStat[playerid][SecurityCameraNumber] = 0;
           
TextDrawHideForPlayer(playeridSecurityCameraTextDraw);
        }
        else if(
PlayerStat[playerid][SecurityCameraStatus] == 0)
        {
           
PlayerStat[playerid][SecurityCameraStatus] = 1;
           
TogglePlayerControllable(playerid0);
           
SetPlayerCameraPos(playerid, -19.8700,-335.8774,10.7141);
           
SetPlayerCameraLookAt(playerid7.8794,-371.8924,6.4286);
           
PlayerStat[playerid][SecurityCameraNumber] = 1;
           
GameTextForPlayer(playerid"~g~Security Camera Enabled."30004);
           
TextDrawShowForPlayer(playeridSecurityCameraTextDraw);
        }
    else return 
SendClientMessage(playeridGREY"You are not at the Control Room.");
    return 
1;

The code you gave works but i still some how get these now
Код:
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.
and for the warning 204 i find this line IsolationVW = 0;
Reply


Messages In This Thread
Help me with this error - by BigGreen - 08.02.2017, 02:13
Re: Help me with this error - by X337 - 08.02.2017, 02:18
Re: Help me with this error - by DandyCorleone - 08.02.2017, 02:19
Re: Help me with this error - by BigGreen - 08.02.2017, 02:22
Re: Help me with this error - by DandyCorleone - 08.02.2017, 02:37
Re: Help me with this error - by BigGreen - 08.02.2017, 02:42
Re: Help me with this error - by DandyCorleone - 08.02.2017, 03:14
Re: Help me with this error - by X337 - 08.02.2017, 03:18
Re: Help me with this error - by BigGreen - 08.02.2017, 03:30
Re: Help me with this error - by BigGreen - 08.02.2017, 04:15

Forum Jump:


Users browsing this thread: 1 Guest(s)