C:\Documents and Settings\Usuario\Escritorio\EuroCity3.0.pwn(2161) : error 004: function "OOCOff" is not implemented
{
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;
}
forward OOCOff(color,const string[]);
public OOCOff(color,const string[])
{
SendClientMessageToAll(color, string);
return 1;
}
PHP код:
|
stock OOCOff(color,const string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(!gOoc[i]) { SendClientMessage(i, color, string); } } } }
stock no necesita forward, borra forward OOCOff(color,const string[]);, o quita el stock y mete mi public.
|
C:\Documents and Settings\Usuario\Escritorio\EuroCity3.0.pwn(2187) : error 017: undefined symbol "OOCOff"
forward OOCOff(color,const string[]);
public OOCOff(color,const string[])
{
SendClientMessageToAll(color, string);
return 1;
}
PHP код:
|
C:\Documents and Settings\Usuario\Escritorio\EuroCity3.0.pwn(2189) : error 017: undefined symbol "OOCOff"
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.
|
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); } } } } }
#define OOCOff SendClientMessage |