help again
#1

hmm i fixed the money score now score dont save at all when i leave and join the server
(i removed the lvdm feature for money instead of real score)

from these lines
Код:
public MoneyGrubScoreUpdate()
{
	new CashScore;
	new name[MAX_PLAYER_NAME];
	//new string[256];
	for(new i=0; i<MAX_PLAYERS; i++)
	{
		if (IsPlayerConnected(i))
  {
			GetPlayerName(i, name, sizeof(name));
   			CashScore = GetPlayerMoney(i);
			SetPlayerScore(i, CashScore);
			if (CashScore > CashScoreOld)
			{
				CashScoreOld = CashScore;
				//format(string, sizeof(string), "$$$ %s is now in the lead", name);
				//SendClientMessageToAll(COLOR_YELLOW, string);
			}
		}
	}
i deleted this :

Код:
CashScore = GetPlayerMoney(i);
SetPlayerScore(i, CashScore);
Reply
#2

Where did you save the score?
Reply
#3

what do u mean?
Reply
#4

You need a saving system or an Admin System like RomAdmin to save scores.
Reply
#5

ok thanx
Reply
#6

Quote:
Originally Posted by Romel
Посмотреть сообщение
You need a saving system or an Admin System like RomAdmin to save scores.
Stop posting bullshit and advertising your own scripts. They don't need an admin system to save stuff. Everyone can code a score saving system using y_ini. All they need is a tutorial.

@OP: Check this tutorial, it will help you

https://sampforum.blast.hk/showthread.php?tid=273088
Reply
#7

I'm not advertising like shits.
I'm just telling him that he needs a saving system like y_ini.
Or Admin System like LuxAdmin, RomAdmin, LAdmin etc..
Reply
#8

PHP код:
public OnPlayerDisconnect
{
    
SavePlayerScore(playerid))
    return 
1

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)