1 kill = 1 score - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 1 kill = 1 score (
/showthread.php?tid=402303)
1 kill = 1 score -
FL3GM4 - 26.12.2012
well, i put this:
onplayerdeath
Код:
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
but it won't to save isto score when i relog
loaduserdata
Код:
INI_Int("Ubojstva", PlayerInfo[playerid][pKills]);
onplayerregister
Код:
INI_WriteInt(playerFile, "Ubojstva", 0);
Код:
PlayerInfo[playerid][pKills] = 0;
onlpayerlogout
Код:
INI_WriteInt(playerFile, "Ubojstva", PlayerInfo[playerid][pKills]);
Re: 1 kill = 1 score -
Deduction - 26.12.2012
On LoadUserData are you doing:
pawn Код:
SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
?
Re: 1 kill = 1 score -
FL3GM4 - 26.12.2012
i put this:
Код:
INI_Int("Ubojstva", SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(3573) : error 017: undefined symbol "INI_Int"
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(3573) : warning 202: number of arguments does not match definition
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(3573) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Re: 1 kill = 1 score -
Deduction - 26.12.2012
What INI system are you using?
Link me?
Re: 1 kill = 1 score -
FL3GM4 - 26.12.2012
I using y_ini saving system...
Re: 1 kill = 1 score -
Joe Staff - 26.12.2012
OnPlayerDeath
pawn Код:
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
PlayerInfo[killerid][pKills]=GetPlayerScore(killerid);
Re: 1 kill = 1 score -
Deduction - 26.12.2012
Remove
pawn Код:
INI_Int("Ubojstva", SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
And add this
pawn Код:
INI_Int("Ubojstva", PlayerInfo[playerid][pKills]);
SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
Re: 1 kill = 1 score -
FL3GM4 - 26.12.2012
Quote:
Originally Posted by Deduction
Remove
pawn Код:
INI_Int("Ubojstva", SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
And add this
pawn Код:
INI_Int("Ubojstva", PlayerInfo[playerid][pKills]); SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
|
thanks very much, its working

+rep