I need help on scripting.
#1

Hello, this is my first thread so first time doing this, so bare with me.

I am getting am error from the /spawnnpc command on vortex.

Error:
Quote:

error 017: undefined symbol "file_actually_exists"

Full script:
Код:
command(spawnnpc, playerid, params[])
{
	new string[128], NPCName[128];
	if(sscanf(params, "z", NPCName))
	{
	    if(Player[playerid][AdminLevel] >= 1)
	    {
			SendClientMessage(playerid, WHITE, "SYNTAX: /spawnnpc [script name]");
		}
	}
	else
	{
	    if(Player[playerid][AdminLevel] >= 5)
	    {
		    format(string, sizeof(string), "npcmodes/recordings/%s.rec", NPCName);

		    if(file_actually_exists(string))
		    {
		        format(string, sizeof(string), "NPC_%d", NPCs+1);
		        ConnectNPC(string, NPCName);
		    }
		    else
		    {
		        SendClientMessage(playerid, WHITE, "That recording / script doesn't exist.");
		    }
	    }
	}
	return 1;
}
Reply


Messages In This Thread
I need help on scripting. - by ChromeMenu - 02.03.2014, 15:59
Re: I need help on scripting. - by Clad - 02.03.2014, 16:01
Re: I need help on scripting. - by ChromeMenu - 02.03.2014, 16:03
Re: I need help on scripting. - by ChromeMenu - 02.03.2014, 16:18
Re: I need help on scripting. - by ChromeMenu - 02.03.2014, 16:55
Re: I need help on scripting. - by BKarner - 02.03.2014, 16:58
Re: I need help on scripting. - by ChromeMenu - 02.03.2014, 17:06
Re: I need help on scripting. - by Conroy - 02.03.2014, 17:55
Re: I need help on scripting. - by BKarner - 03.03.2014, 08:07

Forum Jump:


Users browsing this thread: 1 Guest(s)