Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. new pname[128]; //
  2. new pfile[128];
  3. GetPlayerName(playerid, pname, sizeof(pname));
  4. format(pfile, sizeof(pfile), noiluuskin,pname);
  5. if(!dini_Exists(pfile)) { // If the file exist
  6. dini_Create(pfile); // Create the file
  7. dini_IntSet(pfile, "Score", 0); // Set's "Score"
  8. dini_IntSet(pfile, "Skin", 0); // Set's Skin
  9. SetPlayerScore(playerid, dini_Int(pfile, "Score"));
  10. SetPlayerSkin(playerid, dini_Int(pfile, "Skin")); //
  11. }
  12. else {
  13. SetPlayerScore(playerid, dini_Int(pfile, "Score"));
  14. PlayerInfo[playerid][pSkin] = SetPlayerSkin(playerid, dini_Int(pfile, "Skin"));
  15. // the same thing
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement