Command Error
#1

Error Line:
Код:
format(file, sizeof(file), Camera_Path, CamID);
Код:
(3478) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
CMD:delcam(playerid, params[])
{
    new file[100];
    for (new CamID; CamID < MAX_CAMERAS; CamID++)
    {
        if (gCameras[CamID][CamSpeed] == 0)
        {
           if (IsPlayerInRangeOfPoint(playerid, 5.0, gCameras[CamID][CamX], gCameras[CamID][CamY], gCameras[CamID][CamZ]))
           {
    		   format(file, sizeof(file), Camera_Path, CamID); 
                 if (fexist(file)) 
		         fremove(file); 
		         
                  DestroyObject(gCameras[CamID][CamObj1]);
                  DestroyObject(gCameras[CamID][CamObj2]);
		          gCameras[CamID][CamX] = 0.0;
		          gCameras[CamID][CamY] = 0.0;
		          gCameras[CamID][CamZ] = 0.0;
	              gCameras[CamID][CamAngle] = 0.0;
	              gCameras[CamID][CamSpeed] = 0;
                  gCameras[CamID][CamObj1] = 0;
                  gCameras[CamID][CamObj2] = 0;
           }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Command Error - by DerickClark - 29.08.2015, 02:50
Re: Command Error - by Sew_Sumi - 29.08.2015, 03:00
Re: Command Error - by DerickClark - 29.08.2015, 03:12
Re: Command Error - by Sew_Sumi - 29.08.2015, 03:32
Re: Command Error - by DerickClark - 29.08.2015, 03:35
Re: Command Error - by Sew_Sumi - 29.08.2015, 03:37

Forum Jump:


Users browsing this thread: 2 Guest(s)