public OnPlayerDamageStatusUpdate(playerid)
{
SendClientMessage(playerid, AMARELO,"Cuidado chame a anbulancia /ligar 102" );
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetPlayerHealth(playerid, 10.0);
SetTimer("ANIM",5000,0);
return 1;
}
SetTimer("ANIM",20000,0);
SetTimer("morte",15000,0);
SetTimer("ANIM",20000,0); SetTimer("morte",15000,0); |
public OnPlayerDamageStatusUpdate(playerid)
{
if(GetPlayerHealth(playerid) <= 10)
{
SendClientMessage(playerid, AMARELO,"Cuidado chame a anbulancia /ligar 102" );
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetPlayerHealth(playerid, 10.0);
SetTimer("ANIM",5000,0);
}
return 1;
}
public OnPlayerDamageStatusUpdate(playerid)
{
SendClientMessage(playerid, AMARELO,"Cuidado chame a anbulancia /ligar 102" );
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetPlayerHealth(playerid, 10.0);
SetTimer("ANIM",5000,0);
return 1;
}
public OnPlayerDamageStatusUpdate(playerid)
{
new Float:vida;
GetPlayerHealth(playerid, vida); // Pega o valor do colete.
if (vida(playerid) > 1) //linha do erro
{
SendClientMessage(playerid, AMARELO,"Cuidado chame a anbulancia /ligar 102" );
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetPlayerHealth(playerid, 10);
SetTimer("ANIM",5000,0);
SetTimer("MORTE",5000,0);
}
return 1;
}
C:\Documents and Settings\bruck\Meus documentos\samp03asvr_R7_win32\filterscripts\Cinto.pwn(36) : error 012: invalid function call, not a valid address
C:\Documents and Settings\bruck\Meus documentos\samp03asvr_R7_win32\filterscripts\Cinto.pwn(36) : warning 215: expression has no effect
C:\Documents and Settings\bruck\Meus documentos\samp03asvr_R7_win32\filterscripts\Cinto.pwn(36) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\bruck\Meus documentos\samp03asvr_R7_win32\filterscripts\Cinto.pwn(36) : error 029: invalid expression, assumed zero
C:\Documents and Settings\bruck\Meus documentos\samp03asvr_R7_win32\filterscripts\Cinto.pwn(36) : fatal error 107: too many error messages on one line