utunnels said:Because there's no score. You need to get score from player property first.
mmm... i supposed it must have been something like this... but how can i do that? i've no idea :-\
utunnels said:Because there's no score. You need to get score from player property first.
void self = getlocalvar("self");
int PIndex = getentityproperty(self,"playerindex"); // Get player's index
int score = getplayerproperty(PIndex,"score");
Bloodbane said:You can add this to gain score for this player:
Code:void self = getlocalvar("self"); int PIndex = getentityproperty(self,"playerindex"); // Get player's index int score = getplayerproperty(PIndex,"score");
You already acquired self in your code though. I added that here just to reiterate.