SA-MP Forums Archive
file help - 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: file help (/showthread.php?tid=114776)



file help - TouR - 20.12.2009

Can someone give of an example of how to create a file in scriptfiles and save all the players skins in there using dini?


I writted this topic in gamemodes by mistake can someone delete it from there?


Re: file help - TouR - 20.12.2009

None can help me Is it so difficult that noone can do this


Re: file help - [HiC]TheKiller - 20.12.2009

pawn Код:
public OnGameModeInit
{
  if(dini_Exists("Skins.ini")
  {
    dini_Create("Skins.ini");
  }
  return 1;
}
public OnPlayerDisconnect(playerid)
{
   new Pname[24];
   GetPlayerName(playerid, Pname, 24);
   new Skin = GetPlayerSkin(playerid);
   dini_IntSet("Skins.ini", Pname, Skin);
   return 1;
}
public OnPlayerSpawn(playerid)
{
  new Pname[24];
  GetPlayerName(playerid, Pname, 24);
  SetPlayerSkin(playerid, dini_Int("Skins.ini", Pname));
  return 1;
}
Next time use http://forum.sa-mp.com/index.php?topic=114903.0


Re: file help - TouR - 20.12.2009

can you plz add this to my gm?

http://pastebin.com/m2b62f662

sorry i am new at scripting


Re: file help - TouR - 20.12.2009

hey i made it but i always spawn as cj...


Re: file help - Dark_Kostas - 24.12.2009

I dont know from dini, but shouldnt this be like that

from
pawn Код:
if(dini_Exists("Skins.ini")
{
  dini_Create("Skins.ini");
}
to
pawn Код:
if(!dini_Exists("Skins.ini")
{
  dini_Create("Skins.ini");
}



Re: file help - TouR - 24.12.2009

euxaristw re kosta


Re: file help - TouR - 24.12.2009

kosta den mporw na steilw alla pm... ekana add to msn sou


Re: file help - LarzI - 24.12.2009

Omfg, speak english


Re: file help - TouR - 24.12.2009

i speak to kostas but if you can help can you please tell me?