SA-MP Forums Archive
[Ayuda] Porque me salen estos errores? - 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: [Ayuda] Porque me salen estos errores? (/showthread.php?tid=565652)



[Ayuda] Porque me salen estos errores? - Ivanlamega - 28.02.2015

El pawn me tira este error
Код:
C:\Documents and Settings\Usuario\Escritorio\EuroCity3.0.pwn(2161) : error 004: function "OOCOff" is not implemented
pawn Код:
{
    new JackpotFallen = 0;
    new string[128];
    new winner[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Noticias de la Loteria: {FFFFFF}Hoy en dia el numero ganador ha recaido en: {FF0000}%d", number);
    OOCOff(COLOR_ORANGE, string); //aquн es donde me tira error
    for(new i = 0; i < MAX_PLAYERS; i++){
        if(IsPlayerConnected(i)){
            if(PlayerInfo[i][pLottoNr] > 0){
                if(PlayerInfo[i][pLottoNr] == number){
                    JackpotFallen = 1;
                    GetPlayerName(i, winner, sizeof(winner));
                    format(string, sizeof(string), "Noticias de la Loteria: %s ha ganado el acumulado de $%d .", PlayerName(i), Jackpot);
                    OOCOff(COLOR_DBLUE, string); // y aquн tambien
                    format(string, sizeof(string), "* Usted ha ganado $%d con su billete de loteria.", Jackpot);
                    Message(i, COLOR_YELLOW, string);
                    GivePlayerMoney(i, Jackpot);
                }
                else
                {
                    Message(i, COLOR_WHITE, "* Usted no ha ganado con su billete de loteria este momento.");
                }
            }
            PlayerInfo[i][pLottoNr] = 0;
        }
    }
    if(JackpotFallen)
    {
        new rand = random(20000); rand += 5000;
        Jackpot = rand;
        SaveStuff();
        format(string, sizeof(string), "El nuevo Jackpot se ha iniciado con {9EC73D}$%d", Jackpot);
        OOCOff(0xFFFFFFFF, string);
    }
    else
    {
        new rand = random(5000); rand += 2158;
        Jackpot += rand;
        SaveStuff();
        format(string, sizeof(string), "El bote se ha aumentado a {9EC73D}$%d", Jackpot);
        OOCOff(0xFFFFFFFF, string);
    }
    return 1;
}
Este es el forward si ayuda en algo:
pawn Код:
forward OOCOff(color,const string[]);



Respuesta: [Ayuda] Porque me salen estos errores? - jotajeda - 28.02.2015

PHP код:
public OOCOff(color,const string[])
{
    
SendClientMessageToAll(colorstring);
    return 
1;




Respuesta: [Ayuda] Porque me salen estos errores? - Ivanlamega - 28.02.2015

Quote:
Originally Posted by jotajeda
Посмотреть сообщение
PHP код:
public OOCOff(color,const string[])
{
    
SendClientMessageToAll(colorstring);
    return 
1;

Me sigue saliendo el mismo error, mira yo tengo esto:
Код:
stock OOCOff(color,const string[])
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
		    if(!gOoc[i])
		    {
				SendClientMessage(i, color, string);
			}
		}
	}
}



Respuesta: [Ayuda] Porque me salen estos errores? - jotajeda - 28.02.2015

stock no necesita forward, borra forward OOCOff(color,const string[]);, o quita el stock y mete mi public.


Respuesta: [Ayuda] Porque me salen estos errores? - Ivanlamega - 28.02.2015

Quote:
Originally Posted by jotajeda
Посмотреть сообщение
stock no necesita forward, borra forward OOCOff(color,const string[]);, o quita el stock y mete mi public.
Me sale esto:
Код:
C:\Documents and Settings\Usuario\Escritorio\EuroCity3.0.pwn(2187) : error 017: undefined symbol "OOCOff"



Respuesta: [Ayuda] Porque me salen estos errores? - jotajeda - 28.02.2015

PHP код:
forward OOCOff(color,const string[]);
public 
OOCOff(color,const string[])
{
    
SendClientMessageToAll(colorstring);
    return 
1;




Respuesta: [Ayuda] Porque me salen estos errores? - Ivanlamega - 28.02.2015

Quote:
Originally Posted by jotajeda
Посмотреть сообщение
PHP код:
forward OOCOff(color,const string[]);
public 
OOCOff(color,const string[])
{
    
SendClientMessageToAll(colorstring);
    return 
1;

Me sale lo mismo
Код:
C:\Documents and Settings\Usuario\Escritorio\EuroCity3.0.pwn(2189) : error 017: undefined symbol "OOCOff"



Respuesta: [Ayuda] Porque me salen estos errores? - jotajeda - 28.02.2015

Quote:
Originally Posted by Ivanlamega
Посмотреть сообщение
Me sale lo mismo
Код:
C:\Documents and Settings\Usuario\Escritorio\EuroCity3.0.pwn(2189) : error 017: undefined symbol "OOCOff"
Estбs poniendo dentro de alguna otra funcion, tienes que ponerla como global.


Respuesta: [Ayuda] Porque me salen estos errores? - Ivanlamega - 28.02.2015

Quote:
Originally Posted by jotajeda
Посмотреть сообщение
Estбs poniendo dentro de alguna otra funcion, tienes que ponerla como global.
Como la pongo como global?
No esta dentro de ninguna otra funcion.

PD:
tengo un forward de
sendradiomessage
y tengo un stock del mismo :S y ese no me da error
Код:
stock SendRadioMessage(member, color, string[])
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
		    if(PlayerInfo[i][pMember] == member || PlayerInfo[i][pLeader] == member)
		    {
                if(RadioOn[i])
                {
					SendClientMessage(i, color, string);
				}
			}
		}
	}
}



Re: [Ayuda] Porque me salen estos errores? - N3cromancer - 28.02.2015

Borra la stock/public OOCOff

y define al principio

Quote:

#define OOCOff SendClientMessage

A la final estas usando los mismos parametros que SendClientMessage