[Ayuda] Porque me salen estos errores?
#1

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[]);
Reply
#2

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

Reply
#3

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);
			}
		}
	}
}
Reply
#4

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

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"
Reply
#6

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

Reply
#7

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"
Reply
#8

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.
Reply
#9

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);
				}
			}
		}
	}
}
Reply
#10

Borra la stock/public OOCOff

y define al principio

Quote:

#define OOCOff SendClientMessage

A la final estas usando los mismos parametros que SendClientMessage
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)