17.11.2011, 07:47
Hola dis77urbio si lo pongo como me dices me suelta este error
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
SendDeathMessage(killerid,playerid,reason);
}
if(gTeam[killerid] != gTeam[playerid])
{
GivePlayerMoney(killerid, 300);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
else
{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
GivePlayerMoney(killerid, -300);
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
}
}
return 1; pwn(1830) : error 010: invalid function or declaration
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
SendDeathMessage(killerid,playerid,reason);
}
if(gTeam[killerid] != gTeam[playerid])
{
GivePlayerMoney(killerid, 300);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
else
{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
GivePlayerMoney(killerid, -300);
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
}
}
return 1; pwn(1830) : error 010: invalid function or declaration
}