G:\Brasil Epic Games\gamemodes\BEG2.pwn(3942) : warning 213: tag mismatch
G:\Brasil Epic Games\gamemodes\BEG2.pwn(4004) : warning 202: number of arguments does not match definition
G:\Brasil Epic Games\gamemodes\BEG2.pwn(4016) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
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);
, Float:y, Float:z) // 4 argumentos , acho que й esse o problema
|
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 |
, Float:y, Float:z)
, Float:y, Float:z)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);
}
}
}
|
pawn Код:
|
G:\Brasil Epic Games\gamemodes\BEG2.pwn(3938) : 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(3938) : warning 203: symbol is never used: "range"
G:\Brasil Epic Games\gamemodes\BEG2.pwn(4004) : warning 213: tag mismatch
G:\Brasil Epic Games\gamemodes\BEG2.pwn(4016) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Warnings.
|
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);
}
}
}
|
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. |
: warning 219: local variable "range" shadows a variable at a preceding level
: warning 203: symbol is never used: "range"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);
}
}
}