File or function not found. -
[RVRP]Tyler - 06.06.2011
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?
Re: File or function not found. -
Jack_Leslie - 06.06.2011
Please state the full error, so we know what file or function isn't being found.
Re: File or function not found. -
grand.Theft.Otto - 06.06.2011
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...
Re: File or function not found. -
Jack_Leslie - 06.06.2011
It should say when he opens his server, tries to compile the GM or in the server_log file.
Re: File or function not found. -
grand.Theft.Otto - 06.06.2011
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.
Re: File or function not found. -
[RVRP]Tyler - 06.06.2011
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.
Re: File or function not found. -
[RVRP]Tyler - 07.06.2011
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.
Re: File or function not found. -
Skylar Paul - 07.06.2011
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);
}
}
}
Re: File or function not found. -
[RVRP]Tyler - 07.06.2011
Hmm I tried what you mentioned but I'm having the same errors.
When I remove that command, the script works fine. Pretty weird.
Re: File or function not found. - [L3th4l] - 07.06.2011
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.