Hallo Community
ich habe ein Problem undzwar das wenn ich sterbe es meine server crashen lässt
Der Fehler liegt in diesem Teil der unter OnPlayerSpawn liegt
if(gTod[playerid] == 1)
{
SendClientMessage(playerid, FARBE_Hellblau, "Du hast schwere Verletzungen erlitten. Deshalb liegst du im Koma!");
TogglePlayerControllable(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291);
SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetTimerEx("KHRauskommen",30000,0,"playerid",playerid);
return 1;
}
Alles andere zu diesem Script:
public OnPlayerDeath(playerid, killerid, reason)
{
gTod[playerid] = 1;
return 1;
}
public KHRauskommen(playerid)
{
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerHealth(playerid, 60);
SetPlayerPos(playerid, 1173.5450,-1323.7671,15.1953);
SetPlayerFacingAngle(playerid, 270);
}
Hoffe jemand weiß was ich falsch mache
Danke im Vorraus
//EDIT
Bekomme keine Errors oder Warnings