when you die you close the game, I need help please
#21

I do not intend to flood but I am very involved with this and please fix nose as if someone does not understand anything you say or what I mean by private message I can pass the gamemode to help me
Reply
#22

i didnt read replies so if this has been said, sorry
under on playerdeath do spawn(playerid); and return 1;
if problem persists, well i had same issue long time ago, at that time, the problem was that i had a lot of objects and the server's CPU was not strong, and when we died= crash, but it may also be part of ur gamemode the problem
Reply
#23

If you have any code under your OnPlayerDeath callback, please show it.
Reply
#24

I am a bit new to this script to the response of Xerxes, code? not understand my OnPlayerDeath I put here because I do not understand what you mean to me, sorry, I'm Spanish and I translate with ******. patchkinson the response I have the spawn (playerid);
return 1;
and I get five errors

Код:
public OnPlayerDeath(playerid, killerid, reason)
spawn(playerid);<-added the answer here patchkinson
	return 1;<-added the answer here patchkinson
{
    new playercash;
	if(killerid == INVALID_PLAYER_ID)
        SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
	{
		SendDeathMessage(killerid,playerid,reason);
		SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
		playercash = GetPlayerMoney(playerid);
		if (playercash > 0)
		{
			GivePlayerMoney(killerid, playercash);
			ResetPlayerMoney(playerid);
		}
  	}
 	return 1;
}
Reply
#25

Quote:
Originally Posted by linoxtrala
I am a bit new to this script to the response of Xerxes, code? not understand my OnPlayerDeath I put here because I do not understand what you mean to me, sorry, I'm Spanish and I translate with ******. patchkinson the response I have the spawn (playerid);
return 1;
and I get five errors

Код:
public OnPlayerDeath(playerid, killerid, reason)
spawn(playerid);<-added the answer here patchkinson
	return 1;<-added the answer here patchkinson
{
    new playercash;
	if(killerid == INVALID_PLAYER_ID)
        SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
	{
		SendDeathMessage(killerid,playerid,reason);
		SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
		playercash = GetPlayerMoney(playerid);
		if (playercash > 0)
		{
			GivePlayerMoney(killerid, playercash);
			ResetPlayerMoney(playerid);
		}
 	}
 	return 1;
}
do like this:
public OnPlayerDeath(playerid, killerid, reason)
Spawn(playerid);
return 1;
}
or to pur your stuff do
public OnPlayerDeath(playerid, killerid, reason)
Spawn(playerid);
//UR STUFF HERE
return 1;
}
Reply
#26

this is what I do not understand
Код:
 C: \ Documents and Settings \ All Users \ Documents \ Stuff \ server samp0.2 \ gamemodes \ lvdm.pwn (233): error 017: undefined symbol "Spawn"
C: \ Documents and Settings \ All Users \ Documents \ Stuff \ server samp0.2 \ gamemodes \ lvdm.pwn (235): error 010: invalid function or declaration
C: \ Documents and Settings \ All Users \ Documents \ Stuff \ server samp0.2 \ gamemodes \ lvdm.pwn (241): error 010: invalid function or declaration
C: \ Documents and Settings \ All Users \ Documents \ Stuff \ server samp0.2 \ gamemodes \ lvdm.pwn (247): error 010: invalid function or declaration
C: \ Documents and Settings \ All Users \ Documents \ Stuff \ server samp0.2 \ gamemodes \ lvdm.pwn (1296): warning 203: symbol is never used: "playercash"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors. [/ Code]
Reply
#27

downloaded gamemode?
Reply
#28

no, it is not downloaded gamemode, it's changed my original (as seen unsuccessfully xD)
Reply
#29

It operates the server. the problem was the objects, had too many objects. It is arranged please close the topic

thank everyone who helped me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)