Need help with error
#1

Код:
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?
Reply
#2

before "public" apparently lacks a ";" check, or showing the code above
Reply
#3

Could you post what it should look like?
Reply
#4

example to give this error:
pawn Код:
new Player[MAX_PLAYERS]        // missing the ";"

public asdawawdaw(playerid)
{
    return 1;
}
Reply
#5

I'm confused on where the ";" is suppose to go, I was asking if you could take the code I provided that gave the error, and insert where the ";" should be.
Reply
#6

error means that before the "public" should see a ";" While the above review that "public" you must be missing a ";" to previous line.

show before the "public" number and tell you where this error.
Reply
#7

Код:
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; 
}*/

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

pawn Код:
forward Audio_OnSetPack(audiopack[]) // this error
//if you don't have the public below then uncomment the lines
/*public Audio_OnSetPack(audiopack[])
{
    foreach(Player, i)
    {
        Audio_TransferPack(i);
    }
    return 1;
}*/


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;
}
pawn Код:
forward Audio_OnSetPack(audiopack[]);
use this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)