Saving Skin
#1

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.





Reply
#2

why 1? -1..
1 it's Cj skin
Reply
#3

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

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)