OnplayerDeath and OnPlayerTakeDamage - Array index out of bounds
#7

Quote:
Originally Posted by drawax
Посмотреть сообщение
Do you mean like this?:

Код:
fpublic OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID){

//All of my codes here

}


}
You can simply do:

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid == INVALID_PLAYER_ID)
        return 
1;
    
// Your code...

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)