, aquн les dejo el cуdigo:public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
static Float:QuitarHealth;
if(Team[playerid] == ZOMBIE) // Equipo que llama a la callback.
{
Team[damagedid] == NEMESIS; // Equipo al cual quiere asesinar. (Linea 16503).
SetPlayerHealth(playerid, QuitarHealth-0); // Cuanto de vida le saca.
}
else if(Team[playerid] == HUMANO)
{
Team[damagedid] == CYBORG; //( Linea 16509).
SetPlayerHealth(playerid, QuitarHealth-0);
}
}
return 1; // (Linea 16513).
}
C:\Program Files\Rockstar Games\SA-MP San Andreas\SERVER SAMP\gamemodes\ZombieV3.pwn(16503) : warning 215: expression has no effect C:\Program Files\Rockstar Games\SA-MP San Andreas\SERVER SAMP\gamemodes\ZombieV3.pwn(16509) : warning 215: expression has no effect C:\Program Files\Rockstar Games\SA-MP San Andreas\SERVER SAMP\gamemodes\ZombieV3.pwn(16513) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
static Float:QuitarHealth;
if(Team[playerid] == ZOMBIE) // Equipo que llama a la callback.
{
Team[damagedid] = NEMESIS; // // 1 = de mas
SetPlayerHealth(playerid, (QuitarHealth-0)); //colocarlo entre parentesis ()
}
else if(Team[playerid] == HUMANO)
{
Team[damagedid] = CYBORG; // 1 = de mas
SetPlayerHealth(playerid, (QuitarHealth-0)); //colocarlo entre parentesis ()
}
//} llave de mas.
return 1; // (Linea 16513).
}
C:\Program Files\Rockstar Games\SA-MP San Andreas\SERVER SAMP\gamemodes\ZombieV3.pwn(16503) : warning 215: expression has no effect C:\Program Files\Rockstar Games\SA-MP San Andreas\SERVER SAMP\gamemodes\ZombieV3.pwn(16509) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.

|
no te entendi ke paso o_O.
pero para lo de los equipo es con https://sampwiki.blast.hk/wiki/EnableVehicleFriendlyFire https://sampwiki.blast.hk/wiki/SetPlayerTeam https://sampwiki.blast.hk/wiki/GetPlayerTeam |