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);
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 |
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. |
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);
}
}
}