27.12.2009, 12:27
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
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;
}
|
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;
}
|
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]