this error
#1

the line:
Код:
if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid, 6, 1544.7363,-1627.0232,13.3672)) // NYPD Barrier
	{
	    if(!LAPDBarrierStatus)[MAX_PLAYERS];
	    {
	        LAPDBarrierStatus = 1;[MAX_PLAYERS]
	        MoveDynamicObject(LAPDBarrier, 1544.6943359375, -1630.73046875, 13.27956199646+0.0001, 0.0002, 0, 0, 90);[MAX_PLAYERS]
	    }
	    else
	    {
	        BarrierStatus = 0;[MAX_PLAYERS]
	        MoveDynamicObject(LAPDBarrier, 1544.6943359375, -1630.73046875, 13.27956199646-0.0001, 0.0003, 0, 90, 90);[MAX_PLAYERS]
	    }
	    return 1;
	}
	else if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid, 7, 1588.4501,-1638.5692,13.3672))
	{
	   	if(!LAPDGateStatus)
	    {
	        LAPDGateStatus = 1;
	        MoveDynamicObject(LAPDGate, 1588.6501464844, -1638.0750732422, 6.2343215942383, 3);
	    }
	    else
	    {
	        LAPDGateStatus = 0;[MAX_PLAYERS]
	        MoveDynamicObject(LAPDGate, 1588.6428222656, -1638.02734375, 15.240161895752, 3);
	    }
	    return 1;
	}

Error:
Код:
E:\server\samp037_svr_R2-1-1_win32\gamemodes\LSC-RP.pwn(12197) : error 029: invalid expression, assumed zero
E:\server\samp037_svr_R2-1-1_win32\gamemodes\LSC-RP.pwn(12197) : warning 215: expression has no effect
E:\server\samp037_svr_R2-1-1_win32\gamemodes\LSC-RP.pwn(12197) : error 001: expected token: ";", but found "]"
E:\server\samp037_svr_R2-1-1_win32\gamemodes\LSC-RP.pwn(12197) : error 029: invalid expression, assumed zero
E:\server\samp037_svr_R2-1-1_win32\gamemodes\LSC-RP.pwn(12197) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
im really new to scripting so help me out yo
Reply
#2

Which one is line 12197?

Edit, I noticed this [MAX_PLAYERS], what are you trying to do 0.0? Remove all these MAX PLAYERS you added or use them correctly.
Reply
#3

Done for you, Just copy and paste and then recompile aha

Код:
if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid, 6, 1544.7363,-1627.0232,13.3672)) // NYPD Barrier
	{
	    if(!LAPDBarrierStatus)
	    {
	        LAPDBarrierStatus = 1;
	        MoveDynamicObject(LAPDBarrier, 1544.6943359375, -1630.73046875, 13.27956199646+0.0001, 0.0002, 0, 0, 90);
	    }
	    else
	    {
	        BarrierStatus = 0;
	        MoveDynamicObject(LAPDBarrier, 1544.6943359375, -1630.73046875, 13.27956199646-0.0001, 0.0003, 0, 90, 90);
	    }
	    return 1;
	}
	else if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid, 7, 1588.4501,-1638.5692,13.3672))
	{
	   	if(!LAPDGateStatus)
	    {
	        LAPDGateStatus = 1;
	        MoveDynamicObject(LAPDGate, 1588.6501464844, -1638.0750732422, 6.2343215942383, 3);
	    }
	    else
	    {
	        LAPDGateStatus = 0;
	        MoveDynamicObject(LAPDGate, 1588.6428222656, -1638.02734375, 15.240161895752, 3);
	    }
	    return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)