File or function not found.
#1

I'm not sure what exactly happened, but for some odd reason I get the error that the file or function is not found when I try to start up my local server with my script. I haven't made any changes to plugins or anything real major since I last ran it, so I'm not sure why it's doing this.

I've tried almost everything, can anyone help?
Reply
#2

Please state the full error, so we know what file or function isn't being found.
Reply
#3

Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
Please state the full error, so we know what file or function isn't being found.
That's the point of the thread... he doesn't know what the error is and what file/function can't be found...
Reply
#4

It should say when he opens his server, tries to compile the GM or in the server_log file.
Reply
#5

No, "Error 019: File or Function not found" is usually what gets printed but doesn't tell you what is missing.

I think its error 019. Could be wrong.
Reply
#6

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
No, "Error 019: File or Function not found" is usually what gets printed but doesn't tell you what is missing.

I think its error 019. Could be wrong.
Yeah, I actually tried something different and I've isolated the issue, I believe I just need to update one of my includes. Thanks though.
Reply
#7

Well, I've completely isolated the issue now.

Because of this command, I am getting the error "error 19 file or function not found" when I try and start the server.

Код:
CMD:kick(playerid, params[])
{
	if(PlayerInfo[playerid][Admin] < 1)
	{
	    SendClientMessage(playerid, COLOR_RED, "You don't have access to that command!");
	}
	else
	{
		new id, reason[128];
		if(sscanf(params, "us", id, reason)) SendClientMessage(playerid, COLOR_GREY, "Syntax: /kick [playerid] [reason]");
		else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "That player is not connected!");
		else
		{
		    Kick(id);
			new message[128];
			format(message, sizeof(message), "Administrator %s has kicked %s. Reason: %s", playerid, id, reason);
			SendClientMessageToAll(COLOR_GOLD, message);
		}
	}
}
I updated all of my includes.. not sure what the problem could be.
Reply
#8

Quote:
Originally Posted by [RVRP]Tyler
Посмотреть сообщение
Well, I've completely isolated the issue now.

Because of this command, I am getting the error "error 19 file or function not found" when I try and start the server.

Код:
CMD:kick(playerid, params[])
{
	if(PlayerInfo[playerid][Admin] < 1)
	{
	    SendClientMessage(playerid, COLOR_RED, "You don't have access to that command!");
	}
	else
	{
		new id, reason[128];
		if(sscanf(params, "us", id, reason)) SendClientMessage(playerid, COLOR_GREY, "Syntax: /kick [playerid] [reason]");
		else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "That player is not connected!");
		else
		{
		    Kick(id);
			new message[128];
			format(message, sizeof(message), "Administrator %s has kicked %s. Reason: %s", playerid, id, reason);
			SendClientMessageToAll(COLOR_GOLD, message);
		}
	}
}
I updated all of my includes.. not sure what the problem could be.
Are you using the sscanf plugin? If so, try updating that aswell.

EDIT: Also, with the new sscanf plugin, you're doing it wrong.

pawn Код:
CMD:kick(playerid, params[])
{
    if(PlayerInfo[playerid][Admin] < 1)
    {
        SendClientMessage(playerid, COLOR_RED, "You don't have access to that command!");
    }
    else
    {
        new id, reason[128];
        if(sscanf(params, "us[128]", id, reason)) SendClientMessage(playerid, COLOR_GREY, "Syntax: /kick [playerid] [reason]"); //The line I edited.
        else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "That player is not connected!");
        else
        {
            Kick(id);
            new message[128];
            format(message, sizeof(message), "Administrator %s has kicked %s. Reason: %s", playerid, id, reason);
            SendClientMessageToAll(COLOR_GOLD, message);
        }
    }
}
Reply
#9

Hmm I tried what you mentioned but I'm having the same errors.

When I remove that command, the script works fine. Pretty weird.
Reply
#10

If I'm not mistaken, someone made a plugin that would tell you what's wrong with your problem. Try searching on the plugin section.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)