number of arguments does not match definition
#1

Please Help
PHP код:
6961) : warning 202number of arguments does not match definition 
Код:
public OnIncomingConnection(playerid, ip_address[], port) return 1;
publics: Fresh()
{
    gettime(hour, minute, second);
	if(payday != hour)
	{
        payday=hour, PayDay(), curdate = getdate(year, month, day);
		format(format_string,35, "Сейчас времени %d:00 часов.",hour), SendClientMessageToAll(COLOR_LIGHTRED,format_string);
	}
Reply
#2

Код:
public OnIncomingConnection(playerid, ip_address[], port) return 1;
publics: Fresh()
{
    gettime(hour, minute, second);
	if(payday != hour)
	{
        payday=hour, PayDay(), curdate = getdate(year, month, day);
		format(format_string,35, "Сейчас времени %d:00 часов.",hour), 
        SendClientMessageToAll(COLOR_LIGHTRED,format_string);
	}

public OnIncomingConnection(playerid, ip_address[], port)
publics: Fresh()
{
        gettime(hour, minute, second);
	if(payday != hour)
	{
                payday=hour, PayDay(), curdate = getdate(year, month, day);
		format(format_string,35, "Сейчас времени %d:00 часов.",hour), 
                SendClientMessageToAll(COLOR_LIGHTRED,format_string);
	}
        return 1;
}
go test
Reply
#3

dont working
same warning
Reply
#4

The reason you're having this happen is due to your forward being different to how the function is being used.

You need to post up the definitions, not just the functions.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)