ich wollte ma versuchen mir bots zu erstellen . aber wollte es auch als filterscript benutzen nur klappt es nicht.
bei mir kommen 5 errors aber ich weiß nicht von was obwohl eig. richtig ist denke ich mal. ich bitte um hilfe!!
#if defined FILTERSCRIPT
new car_BulletLS;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
ConnectNPC("BulletLS","BulletLS");
car_BulletLS = AddStaticVehicle(437,1172.8547,-1792.3964,13.5318,359.5389,0,0); // bus
return 1;
}
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "BulletLS", true))
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "BulletLS", true))
{
pCarLic[playerid]=1;
PutPlayerInVehicle(playerid, car_BulletLS, 0);
return 1;
}