C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(368 ![]() C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(3751) : warning 203: symbol is never used: "seek" C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(3782) : warning 203: symbol is never used: "seek" C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(383 ![]() C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(38190) : warning 204: symbol is assigned a value that is never used: "rand" C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(46522) : warning 211: possibly unintended assignment C:\Documents and Settings\Uporabnik\Desktop\Legion\gamemodes\EURP.p wn(93140) : warning 203: symbol is never used: "IsAtNameChange" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Warnings. |
public Audio_OnSetPack(audiopack[]) { foreach(Player, i) { Audio_TransferPack(i); } return 1; }
SendAudioToRange(audioid, volume, seek, Float:x, Float:y, Float:z, Float:range) { 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(i, localhandle, seek); audiohandle[i][audiohandleglobal] = localhandle; } } } } return audiohandleglobal; }
stock SendAudioURLToRange(url[], volume, seek, Float:x, Float:y, Float:z, Float:range) { 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(i, localhandle, seek); audiohandle[i][audiohandleglobal] = localhandle; } } } } return audiohandleglobal; }
if(PlayerInfo[playerid][pCarLic] = 0) return SendClientMessageEx(playerid, COLOR_RED, "You're driving without a drivers license. Obtain one from City Hall!");
if(PlayerInfo[playerid][pModel] = 299) {
}
Have you read the wiki and the pawn_language documentation at all?
The errors are obvious, it tells you are using a function without declaring it, use forward. All those warnings about symbols that are never used or assigned but not used are not a big deal (they won't affect your server) however it's good practice to delete variables you don't use. Also take a look here https://sampwiki.blast.hk/wiki/Control_Structures to see what you're doing wrong (for the unintended assignment warning). |