SA-MP Forums Archive
Need help compiling/fixing script. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help compiling/fixing script. (/showthread.php?tid=481275)



Need help compiling/fixing script. - wertboi333 - 14.12.2013

Код:
Current directory: C:\Users\Blaine Duncan\Desktop\U-RP [ENG - 0.3x]\gamemodes
Nexus.pwn(3511) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
Nexus.pwn(3564) : error 017: undefined symbol "Audio_Seek"
Nexus.pwn(3596) : error 017: undefined symbol "Audio_Seek"
Nexus.pwn(3574) : warning 203: symbol is never used: "seek"
Nexus.pwn(77555) : error 017: undefined symbol "SendAudioURLToRange"
Nexus.pwn(77550) : warning 204: symbol is assigned a value that is never used: "seek"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
================ READY ================
That is what it's saying, so I am assuming it does compile but the .amx file is not where is suppose to be, it's not anywhere. So I need help figuring out why it's not compiling. Is it because of the errors because it's not saying it was aborted. Help please.


Re: Need help compiling/fixing script. - Wizzy951 - 14.12.2013

I can fix some of the errors for you:
Код:
error 017: undefined symbol "Audio_Seek"
>
Change all of the Audio_Seek to Audio_SetPosition


Код:
warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
>
pawn Код:
forward Audio_OnSetPack(audiopack[])
//if you don't have the public below then uncomment the lines
/*public Audio_OnSetPack(audiopack[])
{
    foreach(Player, i)
    {
        Audio_TransferPack(i);
    }
    return 1;
}*/



Re: Need help compiling/fixing script. - wertboi333 - 15.12.2013

Код:
public Audio_OnClientDisconnect(playerid)
{
	new string[128];
	format(string,sizeof(string),"(Audio Plugin) %s(%d) has disconnected from the audio server.",GetPlayerNameEx(playerid),playerid);
	SendClientMessageEx(playerid, 0xA9C4E4FF, string);
	return 1;
}
And gives this error,

Код:
Current directory: C:\Users\Blaine Duncan\Desktop\U-RP [ENG - 0.3x]\gamemodes
Nexus2.pwn(3522) : error 001: expected token: ";", but found "public"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
================ READY ================
How Can I fix?


Re: Need help compiling/fixing script. - wertboi333 - 15.12.2013

Anyone got ideas?