31.03.2012, 02:20
I'm new at creating arrays, and I'm trying to create a valid skin array, and integrate it into my mode. I'm using Y_Classes, and I'm running into a problem with the array (I'm assuming, it very well could be me misusing y_classes)
pawn Code:
new
ValidModels [ ] [ 1 ] = {
{ 1 }
};
pawn Code:
public OnGameModeInit()
{
for( new model; model < sizeof( ValidModels ); model ++ )
{
ValidModels [ model ] [ 0 ] = Class_Add( model, 255.0, 0.0, 10.0, 0.0 );
}
return 1;
}
public OnGameModeExit()
{
for( new model; model < sizeof( ValidModels ); model ++ )
{
Class_Delete( ValidModels [ model ] [ 0 ] );
}
return 1;
}