SA-MP Forums Archive
Audio_OnPlayerConnect - 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: Audio_OnPlayerConnect (/showthread.php?tid=342161)



Audio_OnPlayerConnect - FinalxT - 13.05.2012

When I compile this, the error "Audio_OnPlayerConnect" comes up. I did "CTRL F" to find it but it doesnt find anything that is Audio_OnPlayerConnect.


Re: Audio_OnPlayerConnect - Ballu Miaa - 13.05.2012

What is the error which pop's up?


Re: Audio_OnPlayerConnect - FinalxT - 13.05.2012

C:\Users\owner\Desktop\SAMP.zip\gamemodes\Test.pwn (30736) : error 021: symbol already defined: "Audio_OnPlayerConnect"


Re: Audio_OnPlayerConnect - Ballu Miaa - 13.05.2012

Check the line 30736. Tell me what is it?


Re: Audio_OnPlayerConnect - FinalxT - 13.05.2012

pawn Код:
CMD:update (playerid, params[]);

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_GREEN, "Command: Updates have been added");
    return 1;



Re: Audio_OnPlayerConnect - Ballu Miaa - 13.05.2012

Quote:
Originally Posted by FinalxT
Посмотреть сообщение
pawn Код:
CMD:update (playerid, params[]);

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_GREEN, "Command: Updates have been added");
    return 1;
That aint even a proper code?

1. That CMD should not be inside any callback or function.
2. OnPlayerConnect does not have a closed brace?

Your mixing two codes. Give me 10 lines above n below this code. Ima fix it.