SA-MP Forums Archive
Saving Skin - 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: Saving Skin (/showthread.php?tid=106939)



Saving Skin - retart441 - 07.11.2009

I want skins to save in the players save.

What function should I use to get the players skin, and save or format that number to a dini file.

Код:
dini_IntSet(file, "Skin", 0);
The Zero is were the skin ID is going to be placed.








Re: Saving Skin - BlueRey - 07.11.2009

why 1? -1..
1 it's Cj skin


Re: Saving Skin - Abernethy - 07.11.2009

Quote:
Originally Posted by `DivX
why 1? -1..
1 it's Cj skin
CJ's skin is 0. McNub.
SetPlayerSkin(playerid, dini_Int(file, "Skin"));


Re: Saving Skin - retart441 - 07.11.2009

Quote:
Originally Posted by Abernethy♥
Quote:
Originally Posted by `DivX
why 1? -1..
1 it's Cj skin
CJ's skin is 0. McNub.
SetPlayerSkin(playerid, dini_Int(file, "Skin"));
I no that part but

OnPlayerDisconnect

I need it to save the skin they have there.
I have no clue how to take that skin number. And replace the file.


Re: Saving Skin - Badger(new) - 07.11.2009

pawn Код:
public OnPlayerDisconnect(playerid)
{
  new skin=GetPlayerSkin(playerid);
  dini_IntSet(file, "Skin", skin);
  return 1;
}



Re: Saving Skin - retart441 - 07.11.2009

Quote:
Originally Posted by -The_Badger-
pawn Код:
public OnPlayerDisconnect(playerid)
{
  new skin=GetPlayerSkin(playerid);
  dini_IntSet(file, "Skin", skin);
  return 1;
}
Thanks this worked perfectly. =D


Re: Saving Skin - CristianTdj - 09.01.2010

C:\Documents and Settings\Compaq_Administrator\My Documents\san andreas\BASE jump\gamemodes\Jumping.pwn(46 : error 017: undefined symbol "file"
C:\Documents and Settings\Compaq_Administrator\My Documents\san andreas\BASE jump\gamemodes\Jumping.pwn(467) : warning 204: symbol is assigned a value that is never used: "skin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.