[Ajuda] Erro estranho...
#1

Erro: C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(37) : error 017: undefined symbol "SendAdminText"
C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(45) : error 017: undefined symbol "SendAdminText"
C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(49) : warning 203: symbol is never used: "DOF2_Exit"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

O DOF2_Exit й normal...

Cуdigo
PHP код:
CMD:radio(playerid)
{
      
SendAdminText(playerid"/radio"params);
    
StopAudioStreamForPlayer(playerid);
    
PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
    
SendClientMessage(playerid,0x0F0F0F0F,"{87CEFA}Vocк estб conectado na {FFFFFF}Rбdio Total Dance.");
    return 
1;
}
CMD:s(playerid)
{
    
SendAdminText(playerid"/s"params);
    
StopAudioStreamForPlayer(playerid);
    return 
1;
    } 
Reply
#2

PUTA QUE PARIU, NГO SABE USAR O ****** TRANSLATE

error 017: undefined symbol
erro 017: sнmbolo indefinido
Reply
#3

colokei

#define SendAdminText e ainda continua e deu esses erros.

C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(3 : error 017: undefined symbol "params"
C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(3 : warning 215: expression has no effect
C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(46) : error 017: undefined symbol "params"
C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(46) : warning 215: expression has no effect
Reply
#4

Quote:
Originally Posted by Nork
Посмотреть сообщение
colokei

#define SendAdminText e ainda continua e deu esses erros.

C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(3 : error 017: undefined symbol "params"
C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(3 : warning 215: expression has no effect
C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(46) : error 017: undefined symbol "params"
C:\Users\Caio\Desktop\[GM]Brasil Trucker's Fire\filterscripts\SDR.pwn(46) : warning 215: expression has no effect
kkkkkkkkkkkkkkkkkkkkkkkkkkkk

Cara, sйrio, para de editar GM e vai aprender pawn.
Se a quantidade de tуpicos que tu abre fosse convertida para o tempo que tu leva para estudar pawn, tenho certeza que vc jб teria aprendido a porra toda.

vlw flw
Reply
#5

Ah, se nгo ajuda nгo atrapalha .-.
Reply
#6

A melhor ajuda que podiam ter dado a vocк, o Cor3y deu. Sу que vocк quer ter trabalho. Abrir um GM e editar os SendClientMessages й fбcil...
Reply
#7

Mais como retiro esse erro? й uma define ?
Reply
#8

Alguйm me diz ? estou quebrando a cabeзa e nгo encontro a soluзгo.
Reply
#9

Nгo, cara. Esse SendAdminText й um funзгo, ela deve nгo estar definida ou afim. O GM й seu, aprenda pawn que vocк saberб como arrumar esse erro.
Reply
#10

Me ajuda pf. й FILTERSCRIPT
Reply
#11

Tira o sendadmin e veja cara '---'
Reply
#12

pawn Code:
CMD:radio(playerid, params[])
{
      SendAdminText(playerid, "/radio", params);
    StopAudioStreamForPlayer(playerid);
    PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
    SendClientMessage(playerid,0x0F0F0F0F,"{87CEFA}Vocк estб conectado na {FFFFFF}Rбdio Total Dance.");
    return 1;
}
CMD:s(playerid, params[])
{
    SendAdminText(playerid, "/s", params);
    StopAudioStreamForPlayer(playerid);
    return 1;
    }
se nгo funcionar tente assim:

pawn Code:
CMD:radio(playerid)
{
    StopAudioStreamForPlayer(playerid);
    PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
    SendClientMessage(playerid,0x0F0F0F0F,"{87CEFA}Vocк estб conectado na {FFFFFF}Rбdio Total Dance.");
    return 1;
}
CMD:s(playerid)
{
    StopAudioStreamForPlayer(playerid);
    return 1;
    }
Reply
#13

Na base desse gm essa funзгo й assim.
pawn Code:
// This function sends the given text to all admins
SendAdminText(playerid, command[], text[])
{
    // Setup local variables
    new Name[24], Msg[128];

    // Loop through all players
    for (new i; i < MAX_PLAYERS; i++)
    {
        // Check if the player is an admin
        if (APlayerData[i][PlayerLevel] > 0)
        {
            // Get the player's name
            GetPlayerName(playerid, Name, sizeof(Name));
            // Send the given text to the admin
            format(Msg, 128, "{00FFCC}%s used: %s %s", Name, command, text);
            SendClientMessage(i, 0xFFFFFFFF, Msg);
        }
    }

    // Also log all used commands in the server.log file
    format(Msg, 128, "%s used: %s %s", Name, command, text);
    print(Msg);
}

procure por isso no gm, se n tiver use essa e veja o que acontece.
Reply
#14

Eu nгo quero tirar o SendAdminText
Reply
#15

procure por SendAdminText.. caso nгo tenha, adicione (renanmsd postou a funзгo no post acima) !
Reply
#16

Explique direito olhe o cуdigo total...

PHP Code:
#define ID_Padrao 5757
#include <a_samp>
#include <zcmd>
#include <DOF2>
new LoadedID ID_Padrao;
public 
OnFilterScriptInit()
{
    if(!
fexist("FS_Config.CS.ini"))
    {
        
DOF2_CreateFile("FS_Config.CS.ini");
        
DOF2_SetInt("FS_Config.CS.ini","ID"ID_Padrao);
        
DOF2_SaveFile();
    }
    if(
DOF2_GetInt("FS_Config.CS.ini","ID") > && DOF2_GetInt("CS_Config.CS.ini","ID") < 9999)
    {
        
LoadedID DOF2_GetInt("FS_Config.CS.ini","ID");
    }
    print(
"\nSistema de Rбdio");
    print(
"Rбdio Total Dance...");
    print(
"100%\n");
    
printf("Current DialogID: %i"LoadedID);
    return 
1;
}
public 
OnPlayerCommandText(playerid,cmdtext[])
{
return 
0;
}
public 
OnPlayerCommandReceived(playerid,cmdtext[]){return 1;}
public 
OnPlayerConnect(playerid){return 1;}
public 
OnFilterScriptExit()
{
    return 
1;
}
CMD:radio(playerid)
{
    
SendAdminText(playerid"/radio"params);
    
StopAudioStreamForPlayer(playerid);
    
PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
    
SendClientMessage(playerid,0x0F0F0F0F,"{87CEFA}Vocк estб conectado na {FFFFFF}Rбdio Total Dance.");
    return 
1;
}
CMD:s(playerid)
{
    
SendAdminText(playerid"/s"params);
    
StopAudioStreamForPlayer(playerid);
    return 
1;
    } 
Pode enviar seu Skype?
Reply
#17

Troque estas linhas dos comandos /radio e /s :


pawn Code:
CMD:radio(playerid)

pawn Code:
CMD:s(playerid)

Por estas, respectivamente:


pawn Code:
CMD:radio(playerid, params[])

pawn Code:
CMD:s(playerid, params[])

Depois disso, adicione isto ao final do FS :


pawn Code:
stock SendAdminText(playerid, comando[], params[])  //Para administradores RCON.
{
    new STR[129];
    new NickName[25];
    GetPlayerName(playerid, NickName, 25);
    format(STR, 129, "%s usou:{FFFFFF} %s %s", NickName, comando, params);
    for(new x = 0, y = GetMaxPlayers(); x != y; x++)
    {
        if(IsPlayerAdmin(x))
        {
            SendClientMessage(x, 0xFF0000FF, STR);
        }
    }
    return 1;
}

E, por fim, coloque isto no OnFilterScriptExit:


pawn Code:
DOF2_Exit();


Espero ter ajudado .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)