[Ajuda] Ajudar Waring
#1

Pessoal to tendo 3 waring ajudar ?

PHP код:
G:\Brasil Epic Games\gamemodes\BEG2.pwn(3942) : warning 213tag mismatch
G
:\Brasil Epic Games\gamemodes\BEG2.pwn(4004) : warning 202number of arguments does not match definition
G
:\Brasil Epic Games\gamemodes\BEG2.pwn(4016) : warning 202number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
3 Warnings

pawn Код:
stock PlaySoundForPlayersInRange(soundid, Float:x, Float:y, Float:z)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, range, x, y, z)) // linha  3942
        {
            PlayerPlaySound(i, soundid, x, y, z);
        }
    }
}

//LINHA 4004
PlaySoundForPlayersInRange(6401, 50.0, X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(floorid) + 5.0);

//LINHA 4016
PlaySoundForPlayersInRange(6401, 50.0, X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(floorid) + 5.0);
Reply
#2

PlaySoundForPlayersInRange(6401, 50.0, X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(floorid) + 5.0); // 5 argumentos

stock PlaySoundForPlayersInRange(soundid, Float, Float:y, Float:z) // 4 argumentos , acho que й esse o problema
Reply
#3

Quote:
Originally Posted by Tugamars
Посмотреть сообщение
PlaySoundForPlayersInRange(6401, 50.0, X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(floorid) + 5.0); // 5 argumentos

stock PlaySoundForPlayersInRange(soundid, Float, Float:y, Float:z) // 4 argumentos , acho que й esse o problema
tinha mais 1 so que deu waning e mandou eu retirar a funзгo !
Reply
#4

Troque:
stock PlaySoundForPlayersInRange(soundid, Float, Float:y, Float:z)
Por:
stock PlaySoundForPlayersInRange(soundid, Float:range, Float, Float:y, Float:z)

Faltava um argumento, como disse nosso amigo Tugamars.
Reply
#5

pawn Код:
stock PlaySoundForPlayersInRange(soundid, range, Float:x, Float:y, Float:z)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, range, x, y, z)) // linha  3942
        {
            PlayerPlaySound(i, soundid, x, y, z);
        }
    }
}
Reply
#6

Quote:
Originally Posted by PT
Посмотреть сообщение
pawn Код:
stock PlaySoundForPlayersInRange(soundid, range, Float:x, Float:y, Float:z)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, range, x, y, z)) // linha  3942
        {
            PlayerPlaySound(i, soundid, x, y, z);
        }
    }
}
PHP код:
G:\Brasil Epic Games\gamemodes\BEG2.pwn(3938) : warning 219local variable "range" shadows a variable at a preceding level
G
:\Brasil Epic Games\gamemodes\BEG2.pwn(3942) : warning 213tag mismatch
G
:\Brasil Epic Games\gamemodes\BEG2.pwn(3938) : warning 203symbol is never used"range"
G:\Brasil Epic Games\gamemodes\BEG2.pwn(4004) : warning 213tag mismatch
G
:\Brasil Epic Games\gamemodes\BEG2.pwn(4016) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
5 Warnings

agr ficou 5
Reply
#7

Quote:
Originally Posted by PT
Посмотреть сообщение
pawn Код:
stock PlaySoundForPlayersInRange(soundid, range, Float:x, Float:y, Float:z)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, range, x, y, z)) // linha  3942
        {
            PlayerPlaySound(i, soundid, x, y, z);
        }
    }
}
range й uma float, nгo uma int
Reply
#8

Quote:
Originally Posted by Juniiro3
Посмотреть сообщение
range й uma float, nгo uma int
exato, nem tomei atencao..

pawn Код:
stock PlaySoundForPlayersInRange(soundid, Float:range, Float:x, Float:y, Float:z)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, range, x, y, z)) // linha  3942
        {
            PlayerPlaySound(i, soundid, x, y, z);
        }
    }
}
desculpa ae diego
Reply
#9

Quote:
Originally Posted by Juniiro3
Посмотреть сообщение
Troque:
stock PlaySoundForPlayersInRange(soundid, Float, Float:y, Float:z)
Por:
stock PlaySoundForPlayersInRange(soundid, Float:range, Float, Float:y, Float:z)

Faltava um argumento, como disse nosso amigo Tugamars.
ai man ficou assim

G:\Brasil Epic Games\gamemodes\BEG2.pwn(393 : warning 219: local variable "range" shadows a variable at a preceding level
G:\Brasil Epic Games\gamemodes\BEG2.pwn(3942) : warning 213: tag mismatch
G:\Brasil Epic Games\gamemodes\BEG2.pwn(393 : warning 203: symbol is never used: "range"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Reply
#10

pawn Код:
stock PlaySoundForPlayersInRange(soundid, Float:ptd, Float:x, Float:y, Float:z)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, ptd, x, y, z)) // linha  3942
        {
            PlayerPlaySound(i, soundid, x, y, z);
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)