what's wrong with this code
#1

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    DMG[issuerid] += amount;
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        new Float:pos[3];
        GetPlayerPos(i, pos[0], pos[1], pos[2]);
        if(IsPlayerInRangeOfPoint(issuerid, 0.40, pos[0], pos[1], pos[2]) && pInfo[i][team] == pInfo[issuerid][team])
        {
            if(DMG[issuerid] > 30)
            {
                new Float:hp; hp = GetPlayerHealth(playerid, hp);
                if(hp < 1)
                {
                    new string[65];
                    format(string, sizeof(string), "[ASSIST KILL] You've helped your team to kill %s, You gain +1 kill and $5000", pInfo[playerid][pname]);
                    SendClientMessage(issuerid, 0xFF00FF, string);
                    pInfo[issuerid][kills]++;
                    SetPlayerMoney(issuerid, GetPlayerMoney(issuerid) +5000);
                }
            }
        }
    }
    return 1;
}
this code compiles fine, but doesn't do anything, any reason?

By "doesn't do anything" i mean, the issuerid, doesn't get the message :/.
Reply


Messages In This Thread
what's wrong with this code - by Strier - 24.08.2013, 00:07
Re: what's wrong with this code - by Pottus - 24.08.2013, 00:11
Re: what's wrong with this code - by Strier - 24.08.2013, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)