help again - 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: help again (
/showthread.php?tid=382255)
help again -
Wonderweiss - 02.10.2012
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);
Re: help again -
Swimor - 02.10.2012
Where did you save the score?
Re: help again -
Wonderweiss - 03.10.2012
what do u mean?
Re: help again -
JaKe Elite - 03.10.2012
You need a saving system or an Admin System like RomAdmin to save scores.
Re: help again -
Wonderweiss - 03.10.2012
ok thanx
Re: help again -
KingHual - 03.10.2012
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
Re: help again -
JaKe Elite - 07.10.2012
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..
Re: help again -
M3mPHi$_S3 - 07.10.2012
PHP код:
public OnPlayerDisconnect
{
SavePlayerScore(playerid))
return 1
}