Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

INVALID_PLAYER_ID Help +REP

$
0
0
Hello there,

I've made one simple IF statement on OnPlayerTakeDamage callback.

The if statement is supposed to check if the issuerid (Who made the damage) is valid.

PHP Code:

public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID) return 0// If issuerid is valid ID then it returns 0;
    
     
new string[128];
    
format(stringsizeof(string), "Damager: %d || Damaged: %d || bodypart: %d"issueridplayeridbodypart);
    
SCM(playerid, -1string);
    return 
1;


I've checked it many times, and I'm pretty sure that the code is correct.

Please, tell me what is the problem in this

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>