[SOLVED] Dini help.
#1

I need some help with a Dini problem:

I made some commands and functions for my server. Eg: A command to change your skin, it changes your skin and saves it in your account for the next time when you join the game it changes automatically. This is the code what I made (here must be an error) :

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(dini_Exists(file)) // Check if 'skin' exist.
  {
    dini_Get(file, "Skin"); SetPlayerSkin(playerid, dini_Int(file, "Skin")); // It changes player's skin.
  } else {
    return 1;
  }
}
But when a player join the game, his/her skin changes automatically to Id 0 (Cj's skin).

I have more problems related with this code: Vehicle color, name color...

Solved by me. Close this please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)