[SOLVED] (Savings)
#1

I fixed it myself Thanks for helping anyways
Reply
#2

[SoLVED]
Reply
#3

Isn't it GetPlayerName(playerid,name,MAX_PLAYER_NAME);
Reply
#4

They both work the same way if i swap them it will be the same
Reply
#5

You Dini exists is wrong Probably
Reply
#6

I thought it is:
pawn Код:
dini_Exists(Filename[]);
O.o

You might wanted to use:
Quote:
Originally Posted by park4bmx
pawn Код:
public OnPlayerSpawn(playerid)
{
  new file[128];
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, sizeof(name));
  format(file,sizeof(file),"/mRegistration/%s.ini",name);
  if(dini_Isset(file,"Skins"))
  {
      SetPlayerSkin(playerid, dini_Int(file, "Skins"));
  }
  return 1;
}
Reply
#7

[SoLVED]
Reply
#8

Now when you spawn either if the SKIN file is in there ore not it sets the skin to 0 ore CJ SKIN ??
Reply
#9

Are you saving the skin? or loading it from the dini file?
Reply
#10

What are you trying to do, retrieve the players skin from their account file?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)