[Ajuda] ajudo com isso ?
#1

Код:
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(9053) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(17585) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(28735) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(40965) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
public PlayerFixRadio(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("PlayerFixRadio2", 1000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
        Fixr[playerid] = 1;
    }
}

public PlayerFixRadio2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Fixr[i])
            {
                PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
                Fixr[i] = 0;
            }
        }
    }
}
Reply
#2

pawn Код:
public PlayerFixRadio(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("PlayerFixRadio2", 1000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
        Fixr[playerid] = 1;
    }
    return true;
}

public PlayerFixRadio2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Fixr[i])
            {
                PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
                Fixr[i] = 0;
            }
        }
    }
    return true;
}
Reply
#3

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
pawn Код:
public PlayerFixRadio(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("PlayerFixRadio2", 1000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
        Fixr[playerid] = 1;
    }
    return true;
}

public PlayerFixRadio2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Fixr[i])
            {
                PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
                Fixr[i] = 0;
            }
        }
    }
    return true;
}
Код:
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(9053) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(17585) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(28737) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(40967) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
continua mano
Reply
#4

mas qual e a linha exata?
Reply
#5

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
mas qual e a linha exata?
pawn Код:
public PlayerFixRadio(playerid)// essa daki foi amls !!
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("PlayerFixRadio2", 1000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
        Fixr[playerid] = 1;
    }
    return true;
}

public PlayerFixRadio2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Fixr[i])
            {
                PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
                Fixr[i] = 0;
            }
        }
    }
    return true;
}
Reply
#6

pawn Код:
forward PlayerFixRadio(playerid);
public PlayerFixRadio(playerid)// essa daki foi amls !!
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("PlayerFixRadio2", 1000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
        Fixr[playerid] = 1;
    }
    return true;
}
forward PlayerFixRadio2();
public PlayerFixRadio2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Fixr[i])
            {
                PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
                Fixr[i] = 0;
            }
        }
    }
    return true;
}
Reply
#7

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
pawn Код:
forward PlayerFixRadio(playerid);
public PlayerFixRadio(playerid)// essa daki foi amls !!
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("PlayerFixRadio2", 1000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
        Fixr[playerid] = 1;
    }
    return true;
}
forward PlayerFixRadio2();
public PlayerFixRadio2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Fixr[i])
            {
                PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
                Fixr[i] = 0;
            }
        }
    }
    return true;
}
Код:
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(9053) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(17585) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(17586) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(28738) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Meus documentos\samp03dsvr_R2_win32\gamemodes\backup\BPS.pwn(40968) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#8

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
pawn Код:
forward PlayerFixRadio(playerid);
public PlayerFixRadio(playerid)// essa daki foi amls !!
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("PlayerFixRadio2", 1000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
        Fixr[playerid] = 1;
    }
    return true;
}
forward PlayerFixRadio2();
public PlayerFixRadio2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Fixr[i])
            {
                PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
                Fixr[i] = 0;
            }
        }
    }
    return true;
}
Se fosse falta de forward,daria outro erro. Creio!


@Topic

Poste as 10 linhas a cima de :
pawn Код:
PlayerFixRadio(playerid)
Reply
#9

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
Se fosse falta de forward,daria outro erro. Creio!


@Topic

Poste as 10 linhas a cima de :
pawn Код:
PlayerFixRadio(playerid)
pawn Код:
no comeзo do gm
forward PlayerPlayMusic(playerid);
forward StopMusic();
forward PlayerFixRadio();
forward PlayerFixRadio2();



public PlayerPlayMusic(playerid)// so da erro nisso aki !!!
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("StopMusic", 5000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
    }
}

public StopMusic()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
        }
    }
}

public PlayerFixRadio(playerid)// essa daki foi amls !!
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("PlayerFixRadio2", 1000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
        Fixr[playerid] = 1;
    }
    return true;
}
forward PlayerFixRadio2();
public PlayerFixRadio2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Fixr[i])
            {
                PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
                Fixr[i] = 0;
            }
        }
    }
    return true;
}
o problema que tem isos no gm todo pra todo lado isso aki tem mas so d erro numa coisa
Reply
#10

Quote:
Originally Posted by L.D.K
Посмотреть сообщение
pawn Код:
no comeзo do gm
forward PlayerPlayMusic(playerid);
forward StopMusic();
forward PlayerFixRadio();
forward PlayerFixRadio2();



public PlayerPlayMusic(playerid)// so da erro nisso aki !!!
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("StopMusic", 5000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
    }
}

public StopMusic()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
        }
    }
}

public PlayerFixRadio(playerid)// essa daki foi amls !!
{
    if(IsPlayerConnected(playerid))
    {
        SetTimer("PlayerFixRadio2", 1000, 0);
        PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
        Fixr[playerid] = 1;
    }
    return true;
}
forward PlayerFixRadio2();
public PlayerFixRadio2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Fixr[i])
            {
                PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
                Fixr[i] = 0;
            }
        }
    }
    return true;
}
o problema que tem isos no gm todo pra todo lado isso aki tem mas so d erro numa coisa
...

Verifica as linhas de cima e ve se nгo estб faltando nada.
Exemplo :
pawn Код:
} { ) ( , ;
Acredito que sejб este o erro, isso acontecia comigo as vezes,so q na linha que apareзia na hora de compilar
nгo era a linha que estava o erro.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)