[Ajuda] error 004: function "OnDialogResponse" is not implemented
#1

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

manda as linhas
Reply
#3

quais linhas vocк precisa ?
Reply
#4

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

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

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;

Reply
#7

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

faltando um }
Reply
#9

ah agora vi, obrigado pela ajuda
Reply
#10

como lhe agradeзo ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)