[HELP] DINI Use. - 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] DINI Use. (
/showthread.php?tid=143576)
[HELP] DINI Use. -
wups - 23.04.2010
Quote:
new name[MAX_PLAYER_NAME],file[128];
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"saves/user/%s.txt",name);
dini_Set(file,"License","1" );
dini_IntSet(file,"License",1);
return 1;
|
This script doesn't work for me. I can't figure out why.

Help please.
Re: [HELP] DINI Use. -
Eliran Pesahov - 23.04.2010
You have dini.inc at your Pawno --> Include folder?
If not... take that:
http://rapidshare.com/files/379292974/Dini.inc.html (My upload

)
I hope It'll help you.
Re: [HELP] DINI Use. -
Kyle_Johnson - 23.04.2010
What errors are you getting?
Re: [HELP] DINI Use. -
wups - 23.04.2010
The problem is, that i don't get problems. Just the line
License=0 Doesn't change to License=1 as it should. Here is the full part of the code:
Код:
else if(Health >= 950.0)
{
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"saves/user/%s.txt",name);
dini_Set(file,"License","1");
dini_IntSet(file,"License",1);
return 1;
}
Also, the car doesn't respawn. It just disapears
Re: [HELP] DINI Use. -
Calgon - 23.04.2010
pawn Код:
// dini_Set(file,"License","1" ); - Remove this.
dini_IntSet(file, "License", 1 );
Re: [HELP] DINI Use. -
wups - 23.04.2010
Doesn't work for me :/
Re: [HELP] DINI Use. -
Luka P. - 23.04.2010
Maybe you have a typo, I don't know
Make sure for example it isn't "saves" but "save", "user" but "users" etc
Re: [HELP] DINI Use. -
wups - 24.04.2010
Ok, fixed it (somehow) Now, how to add it to ram, because when you save the game it automaticly gets to 0.
Re: [HELP] DINI Use. -
wups - 24.04.2010
FIXED. Lock.