SA-MP Forums Archive
[Dini] How to set dini +1 ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Dini] How to set dini +1 ? (/showthread.php?tid=204061)



[Dini] How to set dini +1 ? - ]B4E[kengston - 28.12.2010

Hey Guys,
i'd like to set up the dini of a Player.
Код:
dini_IntSet(accFormat,"kicked",+1);
Errors:
Код:
C:\Dokumente und Einstellungen\Besitzer\Desktop\0.3c Rc7 Server\gamemodes\BJ.pwn(9646) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Besitzer\Desktop\0.3c Rc7 Server\gamemodes\BJ.pwn(9646) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Besitzer\Desktop\0.3c Rc7 Server\gamemodes\BJ.pwn(9646) : error 001: expected token: ";", but found ")"
C:\Dokumente und Einstellungen\Besitzer\Desktop\0.3c Rc7 Server\gamemodes\BJ.pwn(9646) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Besitzer\Desktop\0.3c Rc7 Server\gamemodes\BJ.pwn(9646) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Please Help me

kengston


Re: [Dini] How to set dini +1 ? - Marricio - 28.12.2010

PlayerInfo[playerid][pKicked] +1;

Cause in 'onplayerdisconnect' it will add 1 and save.


Re: [Dini] How to set dini +1 ? - admantis - 28.12.2010

pawn Код:
dini_IntSet(accFormat,"kicked",dini_Int(accFormat,"kicked")+1);
@Mecaurio your code wont work -.-


Re: [Dini] How to set dini +1 ? - Marricio - 28.12.2010

oops your right its
PlayerInfo[playerid][pKicked] ++;


Re: [Dini] How to set dini +1 ? - admantis - 28.12.2010

Quote:
Originally Posted by Marricio
Посмотреть сообщение
oops your right its
PlayerInfo[playerid][pKicked] ++;
my code is much more efficent


Re: [Dini] How to set dini +1 ? - ]B4E[kengston - 28.12.2010

ok, the code from admantis works.
But it doesn't save....here is my OnPlayerDisconnected:

Код:
dini_IntSet(accFormat,"kicked",Spieler[playerid][kicked]);



Re: [Dini] How to set dini +1 ? - Marricio - 28.12.2010

try using my way

pawn Код:
// your fuction
Spieler[playerid][kicked] ++;
pawn Код:
dini_IntSet(accFormat,"kicked",Spieler[playerid][kicked]);



Re: [Dini] How to set dini +1 ? - ]B4E[kengston - 28.12.2010

I have a Command for the Admins. The Commands shows how many People they had haved kicked.

And you think, thath this shows for the normal Users, how often they have get kicked.


Re: [Dini] How to set dini +1 ? - Marricio - 28.12.2010

but it works?


Re: [Dini] How to set dini +1 ? - ]B4E[kengston - 28.12.2010

no, it doesn't...