Can someone fix my Script for connecting music PLS - 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: Can someone fix my Script for connecting music PLS (
/showthread.php?tid=582651)
Can someone fix my Script for connecting music PLS -
AleksandarMelar - 22.07.2015
Can someone fix my script i got this 2 errors and when you fix it pls put full script so i can see what did you change THANKS im new in pawno so (^_^)
C:\Documents and Settings\JA\Desktop\SERVER PWN AMX\ZBRP.pwn(68362) : error 010: invalid function or declaration
C:\Documents and Settings\JA\Desktop\SERVER PWN AMX\ZBRP.pwn(68364) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Код:
#include <a_samp>
OnPlayerConnect
{
PlayAudioStreamForPlayer(playerid, "https://www.youtube.com/watch?v=_c9eY4NBpUs");
if (strcmp("/prekinipesmu", cmdtext, true, 10) == 0)
{
StopAudioStreamForPlayer(playerid);
Re: Can someone fix my Script for connecting music PLS -
gurmani11 - 22.07.2015
pawn Код:
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, "https://www.youtube.com/watch?v=_c9eY4NBpUs");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/prekinipesmu", cmdtext, true, 10) == 0)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
return 0;
}
Re: Can someone fix my Script for connecting music PLS -
AleksandarMelar - 22.07.2015
Thanks man

but now i got this
C:\Documents and Settings\JA\Desktop\SERVER PWN AMX\ZBRP.pwn(68361) : error 021: symbol already defined: "Itter_OnPlayerConnect"
C:\Documents and Settings\JA\Desktop\SERVER PWN AMX\ZBRP.pwn(68363) : warning 209: function "Itter_OnPlayerConnect" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Can someone fix my Script for connecting music PLS -
gurmani11 - 22.07.2015
press "Ctrl" "F" and type OnPlayerConnect
press "F3" to search similar to the name.
If it is more than one then please remove the second one and add this
pawn Код:
PlayAudioStreamForPlayer(playerid, "https://www.youtube.com/watch?v=_c9eY4NBpUs");
under first OnPlayerConnect
Re: Can someone fix my Script for connecting music PLS -
AleksandarMelar - 22.07.2015
can i give you my full script and you make it ?
Re: Can someone fix my Script for connecting music PLS -
gurmani11 - 22.07.2015
sure
Re: Can someone fix my Script for connecting music PLS -
AleksandarMelar - 22.07.2015
http://www.filedropper.com/zbrp
There you go
Re: Can someone fix my Script for connecting music PLS -
gurmani11 - 22.07.2015
http://www.solidfiles.com/d/2ebd078258/
Re: Can someone fix my Script for connecting music PLS -
AleksandarMelar - 22.07.2015
Can you upload it some where else i cant download it from that site sry
Re: Can someone fix my Script for connecting music PLS -
gurmani11 - 22.07.2015
You should roll your eyeballs towards right direction!