Hallo leute,
Ich hab nun mein Bot zusammengestellt wie in einem Thread von Toby doch 1 Problem gibts es kommt immer Fehlermeldung:
C:\Documents and Settings\Deny\Desktop\noobbot.pwn(40) : error 001: expected token: "#endif", but found "-end of file-"
Mein Code sieht so aus:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include "a_npc"
#if defined FILTERSCRIPT
new NoobbotCar;
public OnGameModeInit()
{
ConnectNPC("Noobbot","Noobbot");// erstes carbot steht für den namen hier im script, 2tes wie der record heißt!!!!
CARBOTCAR = CreateVehicle(415, 2000.0, 2000.0, 2000.0, 7.0, 0, 0, -1);// im prinzip eig egal wo man die hinspawnt, die weden später geportet denke ich (war zumindest so)
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "NoobbotCar", true))
{
PutPlayerInVehicle(playerid, CARBOTCAR, 0);
}
}
return 1;
}
public OnPlayerConnect(playerid)
if(IsPlayerNPC(playerid))
{
gPlayerLogged[playerid] = 1;
return 1;
}
Hoffe auf Hilfe
MFG SaAr