Jump to content
  • 0

pomoc DINI


Lerry

Dotaz

Zdravím mám tu takovej problém z ukládáníí

 

if(VIP[playerid] ==1)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid));
if(!dini_Exists(cesta))
{
 dini_Create(cesta);
{
dini_Set(cesta, "VIP", VIP[playerid]);
 }
}
}

 

Žádnej smích :d

Předem dík za pomoc :d

Link to comment
Share on other sites

18 odpovědí na tuto otázku

Recommended Posts

  • 0

nemám to skusit takto ?

if(VIP[playerid] ==1)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid));
if(!dini_Exists(cesta))
{
dini_Create(cesta);
dini_Set(cesta, "VIP", VIP[playerid]);
 }
}
}

Link to comment
Share on other sites

  • 0

:slap: :slap:

if(VIP[playerid] ==1)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid));
if(!dini_Exists(cesta))
{
dini_Create(cesta);
{
dini_Set(cesta, "VIP", VIP[playerid]);
}

 

toto zkus a napiš jestli to jde

Link to comment
Share on other sites

  • 0
  • Hlavní moderátor

:slap: :slap:

if(VIP[playerid] ==1)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid));
if(!dini_Exists(cesta))
{
dini_Create(cesta);
{
dini_Set(cesta, "VIP", VIP[playerid]);
}

 

toto zkus a napiš jestli to jde

máš tam 3x{ a 1x}, to nemůže jít...

 

Zkus tohle:

if(VIP[playerid] == 1)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid));
if(!dini_Exists(cesta))
{
dini_Create(cesta);
dini_IntSet(cesta,"VIP",VIP[playerid]);
}
else
{
dini_IntSet(cesta,"VIP",VIP[playerid]);
}
}

Link to comment
Share on other sites

  • 0

Spis by to melo byt takto ne?

if(VIP[playerid] ==1)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid));
if(!dini_Exists(cesta))
{
dini_Create(cesta);
dini_Set(cesta, "VIP", VIP[playerid]);
}
}

Link to comment
Share on other sites

  • 0

Zkus tohle:

if(VIP[playerid] == 1)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid));
if(!dini_Exists(cesta))
{
dini_Create(cesta);
dini_IntSet(cesta,"VIP",VIP[playerid]);
}
else
{
dini_IntSet(cesta,"VIP",VIP[playerid]);
}
}

to nezapíše nic zkoušel sem :d

 

Spis by to melo byt takto ne?

if(VIP[playerid] ==1)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid));
if(!dini_Exists(cesta))
{
dini_Create(cesta);
dini_Set(cesta, "VIP", VIP[playerid]);
}
}

to jsem taky zkoušel

Link to comment
Share on other sites

  • 0

Takto by to malo ísť

if(VIP[playerid]  = 1)
{
new name[21], cesta[256];
GetPlayerName(playerid, name, sizeof(name));
format(cesta, sizeof(file), VIP/%s.ini, name);
{
dini_IntSet(file, "VIP",VIP[playerid]);
}
}

Link to comment
Share on other sites

  • 0

zapíše to jenom VIP=

 

 

public OnPlayerDisconnect(playerid, reason)
{
 if(VIP[playerid] == 1)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid));
 if(!dini_Exists(cesta))
{
dini_Create(cesta);
dini_IntSet(cesta,"VIP",VIP[playerid]);
}
}
return 1;
}

Link to comment
Share on other sites

  • 0

public OnPlayerDisconnect(playerid, reason)
{
	 if(VIP[playerid] == 1)
	 {
			  new cesta[50];
			  format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid));
			   if(!dini_Exists(cesta))
			  {
					   dini_Create(cesta);
					   dini_IntSet(cesta,"VIP",VIP[playerid]);
			  } else {
					   dini_IntSet(cesta,"VIP",VIP[playerid]);
			  }
	 }
return 1;
}

 

Ak ti to nepôjde tak sa vyser na diňi a skús DOF2

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 0

public OnPlayerDisconnect(playerid, reason)
{
	 if(VIP[playerid] == 1)
	 {
			 new cesta[50];
			 format(cesta,sizeof(cesta),"/VIP/%s.ini",Meno(playerid));
			 if(!dini_Exists(cesta))
			 {
					 dini_Create(cesta);
					 dini_IntSet(cesta,"VIP",VIP[playerid]);
			 } else {
					 dini_IntSet(cesta,"VIP",VIP[playerid]);
			 }
	 }
return 1;
}

 

Ak ti to nepôjde tak sa vyser na diňi a skús DOF2

 

OOOOOOOOOOOOoooooooooooooooooooooOOOOOOOOOOOO

dík už tu zapisuje :d

ale nenačítá :(

public OnPlayerConnect(playerid)
{
if(VIP[playerid] == 1) return SCM(playerid,ZELENA,"[ ! ] Vítej VIP hráči");
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid));
{
VIP[playerid] = dini_Int(cesta,"VIP");
}
}
return 1;
}

Link to comment
Share on other sites

  • 0

OOOOOOOOOOOOoooooooooooooooooooooOOOOOOOOOOOO

dík už tu zapisuje :d

ale nenačítá :(

public OnPlayerConnect(playerid)
{
if(VIP[playerid] == 1) return SCM(playerid,ZELENA,"[ ! ] Vítej VIP hráči");
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid));
{
VIP[playerid] = dini_Int(cesta,"VIP");
}
}
return 1;
}

 

Bože..

public OnPlayerConnect(playerid)
{
new cesta[50];
format(cesta,sizeof(cesta),"/VIP/ %s.ini",Meno(playerid));
if(fexist(cesta))
{
VIP[playerid] = dini_Int(cesta,"VIP");
if(VIP[playerid] == 1)
{
SCM(playerid,ZELENA,"[ ! ] Vítej VIP hráči");
}
}
return 1;
}

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...