[HELP] DINI Use.
#1

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

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

What errors are you getting?
Reply
#4

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

pawn Код:
// dini_Set(file,"License","1" ); - Remove this.
dini_IntSet(file, "License", 1 );
Reply
#6

Doesn't work for me :/
Reply
#7

Maybe you have a typo, I don't know
Make sure for example it isn't "saves" but "save", "user" but "users" etc
Reply
#8

Ok, fixed it (somehow) Now, how to add it to ram, because when you save the game it automaticly gets to 0.
Reply
#9

FIXED. Lock.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)