SA-MP Forums Archive
Dini and PlayerInfo? - 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 and PlayerInfo? (/showthread.php?tid=195193)



Dini and PlayerInfo? - sekol - 01.12.2010

Is it a good idea to use PlayerInfo with Dini? If yes, how can i use them together?
pawn Код:
dini_IntSet(file, "Kills", PlayerInfo[playerid][pKills]);
Is it good?


Re: Dini and PlayerInfo? - Jochemd - 01.12.2010

Yes that's good.


Re: Dini and PlayerInfo? - Shadow™ - 01.12.2010

Yeah, that's a perfect example on how to use them And to set the values of the PlayerInfo:

pawn Код:
PlayerInfo[playerid][pKills] = dini_IntGet(file, "Kills");



Re: Dini and PlayerInfo? - sekol - 01.12.2010

Thanks, at this moment i wasn't able to check it in pawno. Thanks for answers :P


Re: Dini and PlayerInfo? - Jochemd - 01.12.2010

Quote:
Originally Posted by Shadow™
Посмотреть сообщение
Yeah, that's a perfect example on how to use them And to set the values of the PlayerInfo:

pawn Код:
PlayerInfo[playerid][pKills] = dini_IntGet(file, "Kills");
Almost good: remember it's 'dini_Int'!