file help
#1

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

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

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

can you plz add this to my gm?

http://pastebin.com/m2b62f662

sorry i am new at scripting
Reply
#5

hey i made it but i always spawn as cj...
Reply
#6

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");
}
Reply
#7

euxaristw re kosta
Reply
#8

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

Omfg, speak english
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)