07.04.2012, 18:48 
	
	
	
	
	
	
				
				
					How to Lock&Unlock In 1 Command?
			
	
		
		
		
		07.04.2012, 18:55 
	
	
	
		in the top 
the cmd
	
	
	
	
pawn Код:
new locked[MAX_PLAYERS];
pawn Код:
CMD:lock(playerid, params[])
{
if(locked[playerid] == 1)
{
FUNTION TO UN LOCK
}
else
{
FUNTION TO LOCK
}
return 1;
}
		
		
		
		08.04.2012, 14:14 
	
	
	Код:
C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148) : warning 203: symbol is never used: "CMD" C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148) : error 055: start of function body without function header C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148 -- 162) : error 010: invalid function or declaration C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148 -- 166) : error 010: invalid function or declaration C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148 -- 166) : fatal error 107: too many error messages on one line
		
		
		
		08.04.2012, 14:16 
	
	
	pawn Код:
CMD:lock(playerid, params[])
{
if(locked[playerid] == 1)
{
FUNTION TO UN LOCK
}
else
{
FUNTION TO LOCK
locked[playerid]=0; // and put the value to 0 here
}
return 1;
}
					« Next Oldest | Next Newest »
				
				Users browsing this thread: 1 Guest(s)



