File or function is not found
#1

Hey guys. I was just adding a command to my script and suddenly I got an error in my server. Notice I said "server" and not "script". Here is the error:

Code:
Script[gamemodes/rp.amx]: Run time error 19: "File or function is not found"
All I added was this:

pawn Code:
CMD:restart(playerid, params[])
{
    if(GetAdminLevel(playerid) >=5 || IsPlayerAdmin(playerid))
    {
        for(new i = 0; i<MAX_PLAYERS; i++)
        {
            new file[256];
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            dini_FloatSet(file, "XPos", x);
            dini_FloatSet(file, "YPos", y);
            dini_FloatSet(file, "ZPos", z);
            dini_IntSet(file, "Interior", GetPlayerInterior(playerid));
        }
        SendRconCommand("gmx");
    }
    return 1;
}
Any idea of how to fix this error?
Reply


Messages In This Thread
File or function is not found - by austin070 - 15.03.2011, 20:09
Re: File or function is not found - by admantis - 15.03.2011, 20:11
Re: File or function is not found - by austin070 - 15.03.2011, 20:28
Re: File or function is not found - by NotoriousMOB - 15.03.2011, 20:31
Re: File or function is not found - by austin070 - 15.03.2011, 22:20

Forum Jump:


Users browsing this thread: 3 Guest(s)