SA-MP Forums Archive
[Ajuda] error 004: function "OnDialogResponse" is not implemented - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] error 004: function "OnDialogResponse" is not implemented (/showthread.php?tid=438137)



error 004: function "OnDialogResponse" is not implemented - MatheusMendes - 18.05.2013

GENTE EU COLOQUEI ESSE CУDIGO
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/admins", true) == 0)
	{
    new Jogador[24];
    new count5;
    new msg[120];
    for(new i=0; i<MAX_PLAYERS; i++){
    if(IsPlayerConnected(i) && IsPlayerAdmin(i)){
    GetPlayerName(i,Jogador,24);
    format(msg,sizeof(msg),"Admins Online: %s", Jogador);
    SendClientMessage(playerid, 0xFFFFFFFF, msg);
    count5++;
    }
    }
    if(count5 == 0){
   SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[Brasil truck] Nenhum Admin Online no Momento Aguarde.");
   }
   return 1;
}
DEPOIS DO

Код:
public OnPlayerText(playerid, text[])
{
	// Block the player's text if he has been muted
    if (APlayerData[playerid][Muted] == true)
	{
		// Let the player know he's still muted
		SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк ainda estб mudo.");

		// Don't allow his text to be sent to the chatbox
		return 0;
	}

    return 1;
}
MAIS QUANDO EU COPILO FICA DANDO ESSE ERRO:

Код:
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(408) : error 029: invalid expression, assumed zero
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(408) : error 004: function "OnDialogResponse" is not implemented
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(411) : error 017: undefined symbol "dialogid"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(413) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(414) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(416) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(417) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(418) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(419) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(421) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(423) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(425) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(427) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(428) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(429) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(430) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(432) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(433) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(435) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(437) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(438) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(439) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(440) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(441) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(442) : error 017: undefined symbol "response"
C:\Users\Matheus-PC\Downloads\brasil truck [tech samp]\Brasil Truck [TECH SAMP]\gamemodes\BRTruck.pwn(444) : error 017: undefined symbol "response"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Re: error 004: function "OnDialogResponse" is not implemented - smiiir - 18.05.2013

manda as linhas


Re: error 004: function "OnDialogResponse" is not implemented - MatheusMendes - 18.05.2013

quais linhas vocк precisa ?


Re: error 004: function "OnDialogResponse" is not implemented - Jason` - 18.05.2013

Conte as chaves { e subtraia pelo nъmero de chaves }. Se o resultado for diferente de 0, vocк deve corrigir.


Re: error 004: function "OnDialogResponse" is not implemented - MatheusMendes - 18.05.2013

Esta dando esse erro porque coloquei esse comando para os player der /admins para ver os admin online

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/admins", true) == 0)
{
new Jogador[24];
new count5;
new msg[120];
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && IsPlayerAdmin(i)){
GetPlayerName(i,Jogador,24);
format(msg,sizeof(msg),"Admins Online: %s", Jogador);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
count5++;
}
}
if(count5 == 0){
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[Brasil truck] Nenhum Admin Online no Momento Aguarde.");
}
return 1;
}

oque ta errado ai ? pode corrigir ?


Re: error 004: function "OnDialogResponse" is not implemented - smiiir - 18.05.2013

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/admins"true) == 0)
    {
        new 
Jogador[24];
        new 
count5;
        new 
msg[120];
        for(new 
i=0i<MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i) && IsPlayerAdmin(i))
            {
                
GetPlayerName(i,Jogador,24);
                
format(msg,sizeof(msg),"Admins Online: %s"Jogador);
                
SendClientMessage(playerid0xFFFFFFFFmsg);
                
count5++;
            }
        }
        if(
count5 == 0)
        {
            
SendClientMessage(playerid0xFFFFFFFF"{FF0000}[Brasil truck] Nenhum Admin Online no Momento Aguarde.");
        }
        return 
1;
    }
    return 
1;




Re: error 004: function "OnDialogResponse" is not implemented - MatheusMendes - 18.05.2013

iSmirnoff, consegui copilar, mais poderia me dizer oque estava errado nos cуdigo que te mandei ?


Re: error 004: function "OnDialogResponse" is not implemented - smiiir - 18.05.2013

faltando um }


Re: error 004: function "OnDialogResponse" is not implemented - MatheusMendes - 18.05.2013

ah agora vi, obrigado pela ajuda


Re: error 004: function "OnDialogResponse" is not implemented - MatheusMendes - 18.05.2013

como lhe agradeзo ?