Can please anybody help me out? with this mistery.
#1

Hello. Yea I still got that bug. When I die I doesn't respawn.
So when I use /kill or when somebody kills me.
Only my health goes to 0. But I don't fell on the ground and respawn.
I only cannot enter vehicles. Or other things. When I jump of a small building after it happends, I finnaly die!
Here is a video:
http://addy.md-design.be/Bugreport_hallo.swf ( need to load a few sec)
Sometimes it works. Sometimes I doesn't. I will make a video when it's active.
I have to solve this bug fastly. We are going to buy Hosted List in a few days. It will be a gaos when people doesn't respawn at the Deathmatch zone. They all will log.
The server has to been ready then.
If you can solve this for me or help me to solve it. I LOVE YOu.
I don't think it's a hard bug. The bug is justed hided somewere.
OnPlayerDeath

OnPlayerSpawn
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  pStats[playerid][Spawned] = 0;
  	if(pStats[playerid][UsingAnim])
	{
    pStats[playerid][UsingAnim] = 0;
    TextDrawHideForPlayer(playerid,txtAnimHelper);
	}
  	if(pStats[killerid][Zone] == 1 || pStats[killerid][Zone] == 3)
	{
	  SendDeathMessage(killerid, playerid, reason);
  		if(pStats[playerid][Admin] >= 1)
		{
			if(pStats[killerid][Zone] == 1) { SendClientMessage(killerid, Green, "Newkill: You received $10.000 and 1 Points for murder an Admin!"); GivePlayerCash(killerid,10000); pStats[killerid][Points]++; }
			if(pStats[killerid][Zone] == 3) { SendClientMessage(killerid, Green, "Newkill: You received $20.000 and 2 Points for murder an Admin!"); GivePlayerCash(killerid,20000); pStats[killerid][Points]+=2;}
		}
		else
		{
			if(pStats[killerid][Zone] == 1) { SendClientMessage(killerid, Green, "Newkill: You received $5.000 and 1 Points for this murder"); GivePlayerCash(killerid,5000); pStats[killerid][Points]++;}
			if(pStats[killerid][Zone] == 3) { SendClientMessage(killerid, Green, "Newkill: You received $10.000 and 2 Points for this murder"); GivePlayerCash(killerid,10000); pStats[killerid][Points]+=2; }
		}
	}
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	  if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && pStats[i][pSpec] == playerid)
	  {
	  	 	TogglePlayerSpectating(playerid, 0);
	  	 	pStats[playerid][pSpec] = -1;
			SpawnPlayer(i);
		}
	}
	return 1;
}
OnPlayerSpawn
Код:
public OnPlayerSpawn(playerid)
{
  pStats[playerid][Spawned] = 1;
	if(RaceParticipant[playerid] >= 1)
	{
		Participants--;
		RaceParticipant[playerid]=0;
		DisablePlayerRaceCheckpoint(playerid);
		SendClientMessage(playerid,Green, "» You leaved the race!");
	}
	if(pStats[playerid][ObjectOn] != -1)
	{
	  DestroyObject(Shark[playerid]);
	  pStats[playerid][ObjectOn] = -1;
	}
	if(pStats[playerid][AFK] == 1)
	{
	  new string[128];
		format(string, sizeof(string), "» %s is now back at The Keyboard!",pName(playerid));
		SendClientMessageToAll(0xf073b9ff, string);
		pStats[playerid][AFK] = 0;
	}
  RemovePlayerWeapons(playerid);
  pStats[playerid][Spawned] = 1;
  TogglePlayerControllable(playerid, true);
  pStats[playerid][Skin] = GetPlayerSkin(playerid);
  	if(pStats[playerid][Zone] != 0)
	{
		if(pStats[playerid][Zone] == 1) { SetPlayerInZone(playerid,1); }
		if(pStats[playerid][Zone] == 2) { SetPlayerInZone(playerid,2); }
		if(pStats[playerid][Zone] == 3) { SetPlayerInZone(playerid,3); }
	}
	else
	{
	 	new rand = random(sizeof(RandomSpawnSpawns));
		SetPlayerPos(playerid,RandomSpawnSpawns[rand][0], RandomSpawnSpawns[rand][1], RandomSpawnSpawns[rand][2]);
		SetPlayerFacingAngle(playerid,RandomSpawnSpawns[rand][3]);
	}
	return 1;
}
Reply
#2

I added a video. Please help me out.
http://addy.md-design.be/Bugreport_hallo.swf
Reply
#3

Код:
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	  if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && pStats[i][pSpec] == playerid)
	  {
	  	 	TogglePlayerSpectating(playerid, 0);
	  	 	pStats[playerid][pSpec] = -1;
			SpawnPlayer(i);
		}
	}
This thing fks the code I think, if a player spectate then die he will spawn and lose spec status? WTF?
Reply
#4

Ow lol yea the playerid and i are messed up. But this to the cause.
The bug was already active before i added this. And I changed it now. And it still doesn't work. So thats not the clue. But thanks.
Reply
#5

I cant find any bugs, sorry and Bad News - U gotta check all ur gamemode
Reply
#6

Yea I already noticed that. Lol I scripted 8000 dam lines. The server works great! Only that fucking bug.
I had it before but don't know anymore how i solved it. Might I didn't even solved it.
Reply
#7

I said Bad News, should I bold it and this bug fks all the server because everone dies someday
Reply
#8

Quote:
Originally Posted by Thrarod
I said Bad News, should I bold it and this bug fks all the server because everone dies someday
Lol stop give me useless answers. Thanks.
Reply
#9

Question - Have you got a timer that fix vehicle or keeps your health at minimum 1?
Reply
#10

I have a timer that fix vehicles. But it doesn't cause this bug.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)