Was hab ich falsch gemacht?
===============================================
CMD:back(playerid, params[])
{
if(PlayerAFK[playerid] == 1)
{
new string[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
TogglePlayerControllable(playerid,true);
format(string, sizeof(string), "SERVER: %s spielt nun weiter. /back",playername);
SendClientMessageToAll(LILA,string);
PlayerAFK[playerid] = 0;
return true;
}
else
{
SendClientMessage(playerid,ROT,"FEHLER: Du bist nicht afk!");
return true;
}
if(PlayerAFK[playerid] == 1)
{
SendClientMessage(playerid,ROT,"FEHLER: Während du afk bist kannst du keine Befehle benutzen. Um aus dem afk Modus heraus zu gelangen tippe /back ein.");
return true;
}
return true;
}
public AFK(playerid)
{
new string[128];
new playername[MAX_PLAYER_NAME];
KillTimer(isAFK);
TogglePlayerControllable(playerid,false);
GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string), "SERVER: %s ist nun afk. /afk",GetName);
SendClientMessageToAll(LILA,string);
SendClientMessage(playerid,WEISS,"Beutze /back um weiter zu spielen.");
PlayerAFK[playerid] = 1;
return true;
}
===============================================
C:\Users\noah\Desktop\Drift-Server\gamemodes\Drift.pwn(11221) : warning 225: unreachable code
C:\Users\noah\Desktop\Drift-Server\gamemodes\Drift.pwn(11235) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
===============================================
Bitte um Hilfe