public OnGameModeInit(){
SetGameModeText("Servidor");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
DisableInteriorEnterExits();
EnableStuntBonusForAll(true);
CargarEstatico("Grupo1"); //Aquн esta o problema
CarregarObjetos(); //Este nгo й executado.
return 1;
}
#define MAX_STACK ( 20 )
new MAX_L_S[MAX_STACK][1];
public CargarEstatico(Tipo[])
{
if( strcmp ( Tipo , "Grupo1" , true ) == 0 && strlen( Tipo ) == 6 ) {
CountAssStatic( Tipo );
new i, v;
do {
i++;
do {
v++;
if ( MAX_L_S[i][0] == 0 ) break;
switch ( v ) {
case 0: continue;
default: {
new string[49];
format(string, sizeof(string), "/Stacks/Grupos/Grupo %i/Stack%i.tmp", i, v);
if ( fexist ( string ) ) {
INI_ParseFile( _Archivo, "CarregarGrupo_%s", .bExtra = true, .extra = v);
}
}
}
} while( v<MAX_L_S[i][0] );
} while( i<MAX_STACK );
return true;
}
return true;
}
format(string, sizeof(string), "/Stacks/Grupos/Grupo %i/Stack%i.tmp", i, v);
public OnGameModeInit(){
SetGameModeText("Servidor");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
DisableInteriorEnterExits();
EnableStuntBonusForAll(true);
CarregarObjetos();
CargarEstatico("Grupo1"); //Tudo OK.
return 1;
}
public OnGameModeInit(){
SetGameModeText("Servidor");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
DisableInteriorEnterExits();
EnableStuntBonusForAll(true);
CarregarObjetos();
CargarEstatico("Grupo1"); //Tudo OK.
CargarEstatico("Grupo2"); //Este nгo й executado.
return 1;
}
|
#define MAX_STACK ( 20 ) new MAX_L_S[MAX_STACK][1]; public CargarEstatico(Tipo[]) { if( strcmp ( Tipo , "Grupo1" , true ) == 0 && strlen( Tipo ) == 6 ) { CountAssStatic( Tipo ); new i, v; do { i++; do { v++; if ( MAX_L_S[i][0] == 0 ) break; switch ( v ) { case 0: continue; default: { new string[49]; format(string, sizeof(string), "/Stacks/Grupos/Grupo %i/Stack%i.tmp", i, v); if ( fexist ( string ) ) { INI_ParseFile( _Archivo, "CarregarGrupo_%s", .bExtra = true, .extra = v); } } } } while( v<MAX_L_S[i][0] ); } while( i<MAX_STACK ); return true; } return true; } |
#define MAX_STACK ( 20 )
new MAX_L_S[MAX_STACK][1];
public CargarEstatico(Tipo[])
{
//if( strcmp ( Tipo , "Grupo1" , true ) == 0 && strlen( Tipo ) == 6 ) {
CountAssStatic( Tipo );
new i, v;
do {
i++;
do {
v++;
if ( MAX_L_S[i][0] == 0 ) break;
switch ( v ) {
case 0: continue;
default: {
new string[49];
format(string, sizeof(string), "/Stacks/Grupos/Grupo %i/Stack%i.tmp", i, v);
if ( fexist ( string ) ) {
INI_ParseFile( _Archivo, "CarregarGrupo_%s", .bExtra = true, .extra = v);
}
}
}
} while( v<MAX_L_S[i][0] );
} while( i<MAX_STACK );
return true;
//}
return true;
}
public OnGameModeInit(){
SetGameModeText("Servidor");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
DisableInteriorEnterExits();
EnableStuntBonusForAll(true);
CarregarObjetos();
CargarEstatico("Grupo1"); //Tudo OK.
CargarEstatico("Grupo2"); //Este nгo й executado.
return 1;
}
#define MAX_STACK ( 20 )
new MAX_L_S[MAX_STACK][1];
public CargarEstatico(Tipo[])
{
if( strcmp ( Tipo , "Grupo1" , true ) == 0 && strlen( Tipo ) == 6 ) {
CountAssStatic( Tipo );
new i, v;
do {
i++;
do {
v++;
if ( MAX_L_S[i][0] == 0 ) break;
switch ( v ) {
case 0: continue;
default: {
new string[49];
format(string, sizeof(string), "/Stacks/Grupos/Grupo %i/Stack%i.tmp", i, v);
if ( fexist ( string ) ) {
INI_ParseFile( _Archivo, "CarregarGrupo_%s", .bExtra = true, .extra = v);
}
}
}
} while( v<MAX_L_S[i][0] );
} while( i<MAX_STACK );
return true;
}
else if( strcmp ( Tipo , "Grupo2" , true ) == 0 && strlen( Tipo ) == 6 ) {
//Cуdigo
return true;
}
return true;
}
public OnGameModeInit(){
SetGameModeText("Servidor");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
DisableInteriorEnterExits();
EnableStuntBonusForAll(true);
CarregarObjetos();
CargarEstatico("Grupo1"); //Tudo OK.
print("oscar");
return 1;
}
// ejecute esto
// "oscar" fue impreso en log?
|
No, no fue impreso.
Ese es mi problema, lo que ponga abajo de esa linea; no funciona! |
La prуxima vez poner el code en categorнa/area espanol, yo puedo ayudar en su categorнa/area.public CountAssStatic(Tipo[]) {
if( strcmp ( Tipo , "Grupo1" , true ) == 0 && strlen( Tipo ) == 6 ) {
new i = 1;
do {
switch ( i ) {
case 0: continue;
default: {
new string[56];
format(string, 56, "/Stacks/Grupos/Grupo %i/count.cfg", i);
MAX_L_S[i][0] = ContandoArquivos( string )+1;
}
} i++;
} while ( i!= MAX_FACCIONES );
return true;
}
else if( strcmp ( Tipo , "Grupo2" , true ) == 0 && strlen( Tipo ) == 6 ) {
//Codigo
}
}
#define MAX_STACK ( 20 )
new MAX_L_S[MAX_STACK][1];
public CargarEstatico(Tipo[])
{
if( strcmp ( Tipo , "Grupo1" , true ) == 0 && strlen( Tipo ) == 6 ) {
CountAssStatic( Tipo );
print("DEBUG");
new i, v;
do {
i++;
do {
v++;
if ( MAX_L_S[i][0] == 0 ) break;
switch ( v ) {
case 0: continue;
default: {
new string[49];
format(string, sizeof(string), "/Stacks/Grupos/Grupo %i/Stack%i.tmp", i, v);
if ( fexist ( string ) ) {
INI_ParseFile( _Archivo, "CarregarGrupo_%s", .bExtra = true, .extra = v);
}
}
}
} while( v<MAX_L_S[i][0] );
} while( i<MAX_STACK );
return true;
}
else if( strcmp ( Tipo , "Grupo2" , true ) == 0 && strlen( Tipo ) == 6 ) {
//Cуdigo
return true;
}
return true;
}