11.10.2009, 20:12 
	
	
	
		Can I use GetPlayerKeys under OnPlayerUpdate ? (Im not going to put a lot of code).
Will it create lagg ? Thanks you for you answers.
	
	
	
	
Will it create lagg ? Thanks you for you answers.
	
	| 
 
					Originally Posted by Linx [Stunt Revolution 
 ] 
it would be kinda of useless becuase onplayerupdate is removed in samp 0.3 iirc  | 
| 
 
					Originally Posted by Don Correlli  
Quote: 
  | 
	| 
 
					Originally Posted by Zeromanster  
And my question ?  
![]()  | 
| 
 
					Originally Posted by Zeromanster  
Can I use GetPlayerKeys under OnPlayerUpdate ? (Im not going to put a lot of code). 
Will it create lagg ? Thanks you for you answers. ![]()  | 
| 
 
					Originally Posted by Don Correlli  
Quote: 
 Quote: 
  | 
public OnPlayerUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{
UpdateCount[playerid] += 1;
if(UpdateCount[playerid] == 3)
{
UpdateCount[playerid] = 0;
OnPlayerPressArrowKeys(playerid);
}
}
return 1;
}
| 
 
					Originally Posted by Don Correlli  
Like i said, little code shouldn't lag it, and you're not saving anything to a file so i guess it's good. But why do you need IsPlayerConnected check? OnPlayerUpdate will only run for connected players by default sa-mp check. 
 |