[Dini] How to set dini +1 ?
#1

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
Reply
#2

PlayerInfo[playerid][pKicked] +1;

Cause in 'onplayerdisconnect' it will add 1 and save.
Reply
#3

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

oops your right its
PlayerInfo[playerid][pKicked] ++;
Reply
#5

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

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

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

try using my way

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

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.
Reply
#9

but it works?
Reply
#10

no, it doesn't...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)