07.05.2010, 12:03
right i have this code (it executes when a player anters an area)
I cant figure out how to increase the amount of kills written in the Wfile when a player kills somone.
I know it should go in OnPlayerDeath but can someone show me how to specify which player to increase the points. hope u know what i mean
many thanks in advance
Код:
GetPlayerName(playerid,Fname,MAX_PLAYER_NAME); format(Wfile,sizeof(Wfile),"%s.ini ",Fname); if(!dini_Exists(Wfile)) { dini_Create(Wfile); dini_IntSet(Wfile, "kills",0); dini_IntSet(Wfile, "deaths",0); } else { return 1; }
I know it should go in OnPlayerDeath but can someone show me how to specify which player to increase the points. hope u know what i mean
many thanks in advance