Score Update
#9

https://sampwiki.blast.hk/wiki/SetPlayerScore
The return value of SetPlayerScore is 1 for success and 0 for failure.

So you're setting "level" to 0 or 1 based on success or failure of using SetPlayerScore, but I don't think that's what you want.
Code:
level = SetPlayerScore(killerid,(GetPlayerScore(killerid))+1); // Should return 1 if killerid is an online player
PlayerInfo[killerid][pLevel] = level;
Reply


Messages In This Thread
Score Update - by Hadzaga - 14.06.2018, 17:29
Re: Score Update - by Livity - 14.06.2018, 17:39
Re: Score Update - by Hadzaga - 14.06.2018, 17:52
Re: Score Update - by BiGuy - 14.06.2018, 18:06
Re: Score Update - by Hadzaga - 14.06.2018, 18:17
Re: Score Update - by Exhibit - 14.06.2018, 19:42
Re: Score Update - by Sew_Sumi - 14.06.2018, 20:34
Re: Score Update - by BiGuy - 14.06.2018, 20:52
Re: Score Update - by AmigaBlizzard - 14.06.2018, 21:57
Re: Score Update - by Stefcaaaa - 14.06.2018, 22:03
Re: Score Update - by Sew_Sumi - 14.06.2018, 22:15
Re: Score Update - by Hadzaga - 14.06.2018, 22:28
Re: Score Update - by BiGuy - 14.06.2018, 22:46

Forum Jump:


Users browsing this thread: 1 Guest(s)