30.06.2009, 19:20 
	
	
	
		i have new new colors[400]={ 400 colors}
how i can onplayerconnect set his color random one of my list?
	
	
	
how i can onplayerconnect set his color random one of my list?
public OnPlayerConnect(playerid){
SetPlayerColor(playerid,random(sizeof(colors)));
return true;
}
| 
 
					Originally Posted by yezizhu  
pawn Код: 
  | 
C:\Documents and Settings\^^\My Documents\NikeRaptor\gamemodes\raz.pwn(2345) : warning 203: symbol is never used: "ColorsAlpha" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
SetPlayerColor(playerid,random(sizeof(colors)));
SetPlayerColor(playerid,random(sizeof(ColorsAlpha)));
#pragma unused ColorsAlpha
#include a_samp
	SetPlayerColor(playerid, colors[random(sizeof(colors))]);
new colors[400] { }