ja hallo ich habe probleme mit meinen bot und es ist die zeile
error 030: compound statement not closed at the end of file (started at line 42)
//Includes
#include
//News
new LSPDcar;
new PDbike;
new Train;
new AT400;
new Coach1;
//Publics
public OnFilterScriptInit()
{
ConnectNPC("Mike","busbot");
ConnectNPC("Johnson","copcarbot");
ConnectNPC("Yards","policebikebot");
ConnectNPC("Kelroy","trainbot");
ConnectNPC("Roy","at400bot");
//Vehicles
Coach1 = AddStaticVehicle(437, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
LSPDcar = AddStaticVehicle(596, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
PDbike = AddStaticVehicle(523, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
Train = AddStaticVehicle(538, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
AT400 = AddStaticVehicle(577, 2109.1763, 1503.0453, 32.2887, 82.2873, 1, 3);
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Mike", true))
{
PutPlayerInVehicle(playerid, Coach1, 0);
SetPlayerSkin(playerid, 255);
ResetPlayerWeapons(playerid);
}
if(IsPlayerNPC(playerid))
{
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Johnson", true))
{
PutPlayerInVehicle(playerid, LSPDcar, 0);
SetPlayerSkin(playerid, 255);
ResetPlayerWeapons(playerid);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Yards", true))
{
PutPlayerInVehicle(playerid, PDbike, 0);
SetPlayerSkin(playerid, 255);
ResetPlayerWeapons(playerid);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Kelroy", true))
{
PutPlayerInVehicle(playerid, Train, 0);
SetPlayerSkin(playerid, 255);
ResetPlayerWeapons(playerid);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Roy", true))
{
PutPlayerInVehicle(playerid, AT400, 0);
SetPlayerSkin(playerid, 255);
ResetPlayerWeapons(playerid);
return 1;
}
}</a_samp>