SA-MP Forums Archive
Consulta algo tonta - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Consulta algo tonta (/showthread.php?tid=529613)



Consulta algo tonta - Jeree10 - 03.08.2014

Hola їComo hago para deshabilitar las bonificaciones por salto, y todo eso del Gta?


Respuesta: Consulta algo tonta - EduGTA - 03.08.2014

Usando EnableStuntBonusForAll.

pawn Код:
EnableStuntBonusForAll(enable);
enable - 1 para activar los bonos, 0 para desactivarlos.

Ejemplo de uso:

pawn Код:
public OnGameModeInit()
{
    EnableStuntBonusForAll(0); //Deshabilita los bonos por acrobacias.
    return 1;
}



Re: Consulta algo tonta - Jeree10 - 03.08.2014

Hola gracias por responder lo puse al final de el public OnGameModeInit y me salen estos errores:
Код:
C:\Users\AsusEvo\Desktop\Gm desde 0\gamemodes\Gamemode.pwn(1384) : error 021: symbol already defined: "EnableStuntBonusForAll"
C:\Users\AsusEvo\Desktop\Gm desde 0\gamemodes\Gamemode.pwn(1385) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Respuesta: Consulta algo tonta - xTexTx - 03.08.2014

El mismo error ya te lo dice, ya lo tienes definido, preciona CTRL + F y escribe EnableStuntBonusForAll
borra uno de los que ya tienes.


Respuesta: Re: Consulta algo tonta - EduGTA - 03.08.2014

Quote:
Originally Posted by Jeree10
Посмотреть сообщение
Hola gracias por responder lo puse al final de el public OnGameModeInit y me salen estos errores:
Код:
C:\Users\AsusEvo\Desktop\Gm desde 0\gamemodes\Gamemode.pwn(1384) : error 021: symbol already defined: "EnableStuntBonusForAll"
C:\Users\AsusEvo\Desktop\Gm desde 0\gamemodes\Gamemode.pwn(1385) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Podrнas pasarnos OnGameModeInit? Ese error me parece raro...


Re: Consulta algo tonta - Jeree10 - 03.08.2014

Код:
//CargarAutos();
    return 1;
}

forward AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
public AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay)
{
    AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
    AutosDelGM++;
    return 1;
}

EnableStuntBonusForAll(0); //Deshabilita los bonos por acrobacias.
    return 1;
}



Respuesta: Consulta algo tonta - EduGTA - 03.08.2014

Al final:

pawn Код:
//CargarAutos();
    return 1;
}

forward AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
public AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay)
{
    AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
    AutosDelGM++;
    return 1;
}

EnableStuntBonusForAll(0); //Deshabilita los bonos por acrobacias.
    return 1;
}
Cambialo por:

pawn Код:
//CargarAutos();
   
    EnableStuntBonusForAll(0); //Deshabilita los bonos por acrobacias.
    return 1;
}

forward AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
public AddStaticVehicleExP(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay)
{
    AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
    AutosDelGM++;
    return 1;
}

Quedarнa: http://sebsauvage.net/paste/?9ba2e6b...GTZcNZyio4YW0=



Re: Consulta algo tonta - Jeree10 - 03.08.2014

Gracias me copilo bien
No lo testeare ya que confio en vos