30.05.2010, 13:46
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) :
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.
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;
}
}
I have more problems related with this code: Vehicle color, name color...
Solved by me. Close this please.