22.02.2016, 06:08
It is a code issue. I have no idea where but searches on that error, return half readable threads.
What I see though is this...
You set the players health, then check if they are connected.
You need to read your code a bit more. As was said above though, the full error, and highlighting of what line it occurs, is much appreciated.
What I see though is this...
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
new Float:HP, holder[1000];
GetPlayerHealth(playerid, HP);
if(weaponid == 4) SetPlayerHealth(playerid, HP-30);
if(weaponid == 22) SetPlayerHealth(playerid, HP-25);
if(weaponid == 32) SetPlayerHealth(playerid, HP-25);
if(weaponid == 28) SetPlayerHealth(playerid, HP-25);
if(weaponid == 30) SetPlayerHealth(playerid, HP-30);
if(weaponid == 31) SetPlayerHealth(playerid, HP-21);
if(weaponid == 34) SetPlayerHealth(playerid, HP-70);
if(weaponid == 29) SetPlayerHealth(playerid, HP-25);
if(weaponid == 25) SetPlayerHealth(playerid, HP-40);
if(!IsPlayerConnected(playerid)) return 0;
if(!IsPlayerConnected(issuerid)) return 0;
You need to read your code a bit more. As was said above though, the full error, and highlighting of what line it occurs, is much appreciated.
