Hay Leute brauche mal hilfe es kommen diese Errors
C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(99) : warning 225: unreachable code
C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(104) : error 017: undefined symbol "playerid"
C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(106) : error 017: undefined symbol "playerid"
C:\Users\Klaus\Desktop\Home
Server\gamemodes\scriptingstuendlein.pwn(275) : warning 235: public
function lacks forward declaration (symbol "SetDeathSpawn")
C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(279) : error 017: undefined symbol "x_max"
C:\Users\Klaus\Desktop\Home
Server\gamemodes\scriptingstuendlein.pwn(288) : warning 235: public
function lacks forward declaration (symbol "PlayerDeathReset")
C:\Users\Klaus\Desktop\Home Server\gamemodes\scriptingstuendlein.pwn(293) : error 017: undefined symbol "x_max"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(killerid,DRot,"System: Du hast ein Verbrechen begangen | Reporter: Annonym");
SendClientMessage(playerid,DRot,"System: Du bist gestorben.");
if(PlayerDeathTime[playerid] == 0)
{
SetDeathSpawn(playerid);
PlayerDeathTime[playerid] = 1;
return 1;
}
else
{
SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
return 1;
}
return 1;
}
public SetDeathSpawn(playerid)
{
if(PlayerDeathTime[playerid] == 1)
{
SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
SetPlayerPos(playerid, 815.5361,-1100.6260,25.7900);
SendClientMessage(playerid, Grau,"Du bist nun für ca. 3 Minuten auf dem Friedhof.");
SetPlayerSkin(playerid, 162);
SetTimerEx("SetPlayerSpawn",180000,0,"i",playerid);
SetTimerEx("PlayerDeathReset",170000,0,"i",playerid);
}
}
public PlayerDeathReset(playerid)
{
if(PlayerDeathTime[playerid] == 1)
{
PlayerDeathTime[playerid] = 0;
SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min)
}
}