[Help] With Dini - 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: [Help] With Dini (
/showthread.php?tid=274654)
[Help] With Dini -
Amel_PAtomAXx - 06.08.2011
Hi , im still learning dini now i have an problem ,
i dont know how to save Score , Cash , Admin level etc , so if someone have an idea how to make it , will be great
I tried it like this but it is not saving
pawn Код:
new file[128];
dini_Set(file,"AdminLevel",PlayerInfo[playerid][AdminLevel]);
dini_Set(file,"Score",PlayerInfo[playerid][Score]);
dini_Set(file,"Cash",PlayerInfo[playerid][Cash]);
help please.
Re: [Help] With Dini -
WoodPecker - 06.08.2011
Can you post here your OnPlayerLogin, OnPlayerRegister,OnPlayerConnect, OnPlayerUpdate if you are using this one to save the player stats.
Re: [Help] With Dini -
Amel_PAtomAXx - 06.08.2011
hmm , look i just need idea how to get
Score here:
pawn Код:
dini_Set(file,"Score",PlayerInfo[playerid][Score]);
Cash Here:
pawn Код:
dini_Set(file,"Cash",PlayerInfo[playerid][Cash]);
Re: [Help] With Dini -
WoodPecker - 06.08.2011
Are you using any filterscript ? or tell me what gamemode you are using.
Re: [Help] With Dini -
Kush - 06.08.2011
Quote:
Originally Posted by Amel_PAtomAXx
Hi , im still learning dini now i have an problem ,
|
You've had a problem ever since your started 'learning' dini. Switch to Y_INI or MySQL.
If your making a server, you'd be better off taking the godfather than to 'learn' dini.