02.03.2014, 15:59
(
Последний раз редактировалось ChromeMenu; 02.03.2014 в 16:02.
Причина: Was not lined up correctly
)
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:
Full script:
I am getting am error from the /spawnnpc command on vortex.
Error:
Quote:
|
error 017: undefined symbol "file_actually_exists" |
Код:
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;
}


