Won't Compile
#1

So I am adding a NPC, and the script won't compile, any ideas? I tried alot of things, can't find the problem.

Код:
%PATH%(13) : error 001: expected token: ";", but found "-identifier-"


1 Error.
My script.

Код:
#define FILTERSCRIPT
#define COLOR_BLUE 0x33CCFFAA
#include <a_samp>

#if defined FILTERSCRIPT
new MyFirstNPCVehicle;
new Text3D:Botinfo;

public OnFilterScriptInit()
{

	ConnectNPC("David","nrg")
	MyFirstNPCVehicle = CreateVehicle(522, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
	Botinfo = Create3DTextLabel("LS BOT",COLOR_BLUE,0.0,0.0,0.0,30.0,0);

}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif


public OnPlayerSpawn(playerid)
{
	if(IsPlayerNPC(playerid))
	    {
	    new npcname[MAX_PLAYER_NAME];
		GetPlayerName(playerid, npcname, sizeof(npcname));
		SetPlayerSkin(playerid, 167);
		if(!strcmp(npcname, "David",true))
		{
		PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0);
		SetPlayerColor(playerid,0xFFFFFFFF);
		}
		if(!strcmp(npcname, "David", true))
		{
		Attach3DTextLabelToPlayer(Botinfo, playerid, 0.0,0.0,0.0);
		}
		return 1;
		}
		return 1;
 }
Reply
#2

-Replaced it with
Код:
public OnFilterScriptInit()
{
  print("my filterscript");
  ConnectNPC("MyFirstNPC","mynpc");
  MyFirstNPCVehicle = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)