SA-MP Forums Archive
Stats don't save.. - 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: Stats don't save.. (/showthread.php?tid=451849)



Scores don't save.. - Helpergood - 18.07.2013

Hi guys.
I have had an error ..
It is that I can't save the score on my server.
Can anyone have a solution ? Thanks.
MORE NOTES:-
1.I use ladmin to set my score , but doesn't saved. [EDIT:Changed to LuxAdmin][SOLVED]
2.I need help to make that if someone kills the other , the killer gets +1 score and the killed gets -1 score.[SOLVED]

Thanks in advance .


Re: Stats don't save.. - RALL0 - 18.07.2013

To be honest I never heard of ladmin before, could you show us some codes?


Re: Stats don't save.. - Helpergood - 18.07.2013

Dude..It is Lethal's Admin FS ..
It is on the forums lol...


Re: Stats don't save.. - RALL0 - 18.07.2013

Well too bad I never heard of that FS, show the codes..
*EDIT:
A admin filterscript explains everything for itself, it has nothing to do with stats.


Re: Stats don't save.. - Helpergood - 18.07.2013

But... since it does register/login players.. why won't it save score? "By the way I am sorry I meant score >.<"


Re: Stats don't save.. - Rufio - 18.07.2013

Quote:

2.I need help to make that if someone kills the other , the killer gets +1 score and the killed gets -1 score.

it is pretty simple though.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(playerid, -1);
SetPlayerScore(killerid, +1);
return 1;
}



Re: Stats don't save.. - Helpergood - 18.07.2013

Quote:
Originally Posted by Rufio
Посмотреть сообщение
it is pretty simple though.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(playerid, -1);
SetPlayerScore(killerid, +1);
return 1;
}
Got the following errors / warnings

pawn Код:
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(3200) : error 029: invalid expression, assumed zero
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(3200) : warning 215: expression has no effect
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(3200) : error 001: expected token: ";", but found ")"
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(3200) : error 029: invalid expression, assumed zero
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(3200) : fatal error 107: too many error messages on one line



Re: Stats don't save.. - Rufio - 18.07.2013

and which is the 3200 th line ?

edit oh my bad. delete + lol


Re: Stats don't save.. - Helpergood - 18.07.2013

Quote:
Originally Posted by Rufio
Посмотреть сообщение
and which is the 3200 th line ?
pawn Код:
SetPlayerScore(killerid, +1);
BTW I have a warning that I used to get,so don't put it in mind lol.


Re: Stats don't save.. - Rufio - 18.07.2013

I edited my post sorry again ^^ if it doesnt work just tell me ^^