Jump to content
  • 0

pomoc [Help] Dini


GvaKO

Dotaz

Mam spravené ukladanie skinov do suboru !! takto

 

 

#include

#include

 

new Name[MAX_PLAYER_NAME];

new File[64];

 

public OnPlayerDisconnect(playerid)

{

GetPlayerName(playerid, Name, sizeof Name);

format(File, sizeof(File), "/Skinnek/%s.ini",Name);

if(!dini_Exists(File))

{

}

else

{

dini_IntSet(File, "Skin", GetPlayerSkin(playerid));

}

}

 

public OnPlayerConnect(playerid)

{

GetPlayerName(playerid, Name, sizeof(Name));

format(File, sizeof(File), "/Skinnek/%s.ini",Name);

if(!dini_Exists(File))

{

dini_Create(File);

dini_IntSet(File, "Skin", 0);

SetPlayerSkin(playerid, dini_Int(File, "Skin"));

}

else

{

 

SetPlayerSkin(playerid, dini_Int(File, "Skin"));

}

return 1;

}

 

 

 

 

Skin sa do suboru ulozi , ale nenacita sa !! pls kde je chyba

Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...