Can someone fix my Script for connecting music PLS
#1

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);
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

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
Reply
#5

can i give you my full script and you make it ?
Reply
#6

sure
Reply
#7

http://www.filedropper.com/zbrp
There you go
Reply
#8

http://www.solidfiles.com/d/2ebd078258/
Reply
#9

Can you upload it some where else i cant download it from that site sry
Reply
#10

You should roll your eyeballs towards right direction!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)