Guten Tag, ich habe ein großes Problem
Ich wollte einen Bot erstellen, mit dem Tutorial:
[ SCRIPTING ] Samp 0.3 Bots Erstellen [überarbeitet]
Doch nun bekomme ich diese Errors
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(532) : error 017: undefined symbol "SpielerSpeichern"
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(547) : warning 217: loose indentation
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(550) : warning 217: loose indentation
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(550) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(550) : error 004: function "OnPlayerDeath" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(555) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(555) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(555) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(560) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(560) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(560) : error 004: function "OnVehicleDeath" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(565) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(565) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(565) : error 004: function "OnPlayerText" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(570) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(570) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(570) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(572) : error 017: undefined symbol "cmdtext"
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(580) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(580) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(580) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(585) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(585) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(585) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(590) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(590) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(590) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(595) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(595) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(595) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(600) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(600) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(600) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(605) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(605) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(605) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(610) : warning 225: unreachable code
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(610) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(610) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
So sieht alles von den Bots aus
new eingeloggt[MAX_PLAYERS];
Bei OnGameModeInit hab ich das
//NPCs
ConnectNPC("Jeff","Jeff");
OnPlayerConnect(wo auch der Fehler ist )
public OnPlayerConnect(playerid)
{
eingeloggt[playerid]=0;
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "Jeff", true))
{
eingeloggt[playerid]=1;
return 1;
}
}
else
{
new Spieler[64];
new Sname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Sname,sizeof(Sname));
format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",Sname);
if(dini_Exists(Spieler))
{
SendClientMessage(playerid,0xF5FF00FF,"Herzlich Willkommen zurück.");
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login","Willkommen zurück, bitte gib dein Passwort ein","Login","Abbrechen");
}
else
{
SendClientMessage(playerid,0x005FFFFF, "Willkommen. Viel Spaß wünscht dir das gesamte Team.");
ShowPlayerDialog(playerid,REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Bitte wähle ein Passwort um dir einen Account zu erstellen","Registrieren","Abbrechen");
}
}
return 1;
}
OnPlayerSpawn
public OnPlayerSpawn(playerid)
{
SetPlayerColor(playerid,0xFFFFFF00);
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "Jeff", true))
{
SetPlayerSkin(playerid,185);
}
return 1;
}
HOffentlich könnt ihr mir helfen