LoL i was gettin 19 erros for a { , now im gettin 3 erros.
[code=PWNO]C:\Users\Fourmentel\Desktop\Juegos\ServerSAMP\SERV ERFINAL\gamemodes\sananmoneygrub0.5.pwn(172
: error 010: invalid function or declaration
C:\Users\Fourmentel\Desktop\Juegos\ServerSAMP\SERV ERFINAL\gamemodes\sananmoneygrub0.5.pwn(1730) : error 021: symbol already defined: "JB_SetPlayerPos"
C:\Users\Fourmentel\Desktop\Juegos\ServerSAMP\SERV ERFINAL\gamemodes\sananmoneygrub0.5.pwn(1733) : error 010: invalid function or declaration[/code]
This is my onplayerdeath()
[code=PWNO]
public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
new killedplayer[MAX_PLAYER_NAME];
new string[256];
playercash = GetPlayerMoney(playerid);
S_OnPlayerDeath(killerid);
if(killerid == INVALID_PLAYER_ID)
{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
}
else
{
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1 );
if(bounty[playerid] > 0 && (playerGang[killerid] == 0 || playerGang[playerid] != playerGang[killerid])) {
GetPlayerName(playerid, killedplayer, sizeof(killedplayer));
format(string, sizeof(string), "Ganaste la recompensa de %d por matar a %s.", bounty[playerid], killedplayer);
SendClientMessage(killerid, COLOR_GREEN, string);
GivePlayerMoney(killerid, bounty[playerid]);
bounty[playerid] = 0;
}
if(playercash > 0) {
GivePlayerMoney(killerid, playercash);
}
}
if(playercash > 0)
{
ResetPlayerMoney(playerid);
}
}
if(GetPlayerInterior(killerid) == (CP_BANK)
{
SetPlayerPos(killerid, 264.6288,77.5742,1001.0391);
}
return 1;
}
[/code]
The JB_SetPlayerPos, is from the Junkbuster anticheat.