Posts: 24
Threads: 1
Joined: Nov 2008
Reputation:
0
i have worked out how to add ths SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
but now how do i make it so that it saves the score when some 1 leaves the game?
Posts: 24
Threads: 1
Joined: Nov 2008
Reputation:
0
ok i have got it working part from 1 thing when i connect it dont load my score it sets it as 0 but when i leave it saves it cos i look in the scriptfiles and it has me score but it resets everytime i connect can come 1 please help me?
Posts: 24
Threads: 1
Joined: Nov 2008
Reputation:
0
hi i have 1 prob some how i have set it so the person that gets killed gets the point but i want it the other way aeound i have been looking at my script 4 ages i dont know what to do to fix it can some 1 please help me??
Posts: 24
Threads: 1
Joined: Nov 2008
Reputation:
0
please can some 1 help me?
Posts: 388
Threads: 11
Joined: Feb 2008
Reputation:
0
You probably have 'SetPlayerScore(playerid', change the playerid to killerid.
Posts: 11
Threads: 0
Joined: Aug 2010
Reputation:
0
pawn Code:
// under OnPlayerDeath
Just put it under GetPlayerName(killerid, killer, sizeof(killer));
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
Posts: 11
Threads: 0
Joined: Aug 2010
Reputation:
0
pawn Code:
pawn Code:
// under OnPlayerDeath
Just put it under GetPlayerName(killerid, killer, sizeof(killer));
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);