:mask(playerid, params[])// Fixed/Brand new - Willowfield
{
if(PlayerInfo[playerid][pMask] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
}
}
PlayerInfo[playerid][pMask] = 1;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s has put a mask on.", name);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(PlayerInfo[playerid][pMask] == 1 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
}
PlayerInfo[playerid][pMask] = 0;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s has put their mask away.", name);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
Desktop\DSRP1\gamemodes\RZRP.pwn(4904) : warning 203: symbol is never used: "seek" Desktop\DSRP1\gamemodes\RZRP.pwn(4935) : warning 203: symbol is never used: "seek" Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : error 017: undefined symbol "name" Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : error 017: undefined symbol "name" Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : error 029: invalid expression, assumed zero Desktop\DSRP1\gamemodes\RZRP.pwn(95890) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
CMD:mask(playerid, params[])// Fixed/Brand new - Willowfield
{
new name[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pMask] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
}
}
PlayerInfo[playerid][pMask] = 1;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s has put a mask on.", name);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(PlayerInfo[playerid][pMask] == 1 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
}
PlayerInfo[playerid][pMask] = 0;
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s has put their mask away.", name);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
I assume this is from line 95890 because I can see "name" but not "seek".
pawn Код:
|
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(4905) : warning 203: symbol is never used: "seek" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(4936) : warning 203: symbol is never used: "seek" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(96058) : error 017: undefined symbol "string" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(96058) : error 017: undefined symbol "string" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(96058) : error 029: invalid expression, assumed zero C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRP.pwn(96058) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
SendAudioToRange(audioid, volume, seek, Float:x, Float:y, Float:z, Float:range) // this is line 4905
{
if(audiohandleglobal >= 99)
{
audiohandleglobal = 0;
}
else
{
audiohandleglobal++;
}
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(Audio_IsClientConnected(i))
{
if(IsPlayerInRangeOfPoint(i,range,x,y,z))
{
new localhandle = Audio_Play(i,audioid,false,false,false);
Audio_Set3DPosition(i, localhandle, x, y, z, range);
Audio_SetVolume(i, localhandle, volume);
//Audio_SetPosition(playerid, handleid, seconds);
audiohandle[i][audiohandleglobal] = localhandle;
}
}
}
}
return audiohandleglobal;
}
stock SendAudioURLToRange(url[], volume, seek, Float:x, Float:y, Float:z, Float:range) // line 4936
{
if(audiohandleglobal >= 99)
{
audiohandleglobal = 0;
}
else
{
audiohandleglobal++;
}
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(Audio_IsClientConnected(i))
{
if(IsPlayerInRangeOfPoint(i,range,x,y,z))
{
new localhandle = Audio_PlayStreamed(i,url,false,false,false);
Audio_Set3DPosition(i, localhandle, x, y, z, range);
Audio_SetVolume(i, localhandle, volume);
//Audio_SetPosition(playerid, handleid, seconds);
audiohandle[i][audiohandleglobal] = localhandle;
}
}
}
}
return audiohandleglobal;
}
#pragma unused seek
SendAudioToRange(audioid, volume, Float:x, Float:y, Float:z, Float:range)
SendAudioURLToRange(url[], volume, Float:x, Float:y, Float:z, Float:range)
new string[128];
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(14424) : warning 202: number of arguments does not match definition C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(14950) : warning 202: number of arguments does not match definition C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(14991) : warning 202: number of arguments does not match definition C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(34639) : warning 202: number of arguments does not match definition C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(81919) : warning 202: number of arguments does not match definition C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(96073) : error 017: undefined symbol "string" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(96073) : error 017: undefined symbol "string" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(96073) : error 029: invalid expression, assumed zero C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(96073) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
SendAudioToRange(10300, 100, 0, X, Y, Z, 20.0);
SendAudioToRange(10300, 100, 0, X, Y, Z, 20.0);
SendAudioToRange(10300, 100, 0, X, Y, Z, 20.0);
new audioid = SendAudioToRange(soundid,volume,seek,aX,aY,aZ,range);
new audioid = SendAudioURLToRange(inputtext,volume,seek,aX,aY,aZ,range);
format(string, sizeof(string), "* %s has put their mask away.", name);
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4924) : error 017: undefined symbol "audioid" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4905) : warning 203: symbol is never used: "url" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4905 -- 4936) : error 025: function heading differs from prototype C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4905 -- 4937) : error 021: symbol already defined: "SendAudioURLToRange" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(4905 -- 4937) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
SendAudioToRange(10300, 100, X, Y, Z, 20.0);
SendAudioToRange(10300, 100, X, Y, Z, 20.0);
SendAudioToRange(10300, 100,X, Y, Z, 20.0);
new audioid = SendAudioToRange(soundid,volume,aX,aY,aZ,range);
new audioid = SendAudioURLToRange(inputtext,volume,aX,aY,aZ,range);
new string[64]; format(string, sizeof(string), "* %s has put their mask away.", name);
C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(67) : error 017: undefined symbol "seek" C:\Documents and Settings\Ashley\Desktop\DSRP1\gamemodes\RZRPbeta.pwn(81927) : warning 204: symbol is assigned a value that is never used: "seek" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.