File read/write question
#3

Can you help me?? I want to convert this dini code to SII

if(!dini_Exists(file))
{
dini_Create(file);
dini_Set(file,"Name",Name);
dini_Set(file,"Ip",Ip);
dini_IntSet(file,"Registered",0);
dini_IntSet(file,"Password",0);
dini_IntSet(file,"Level",0);
dini_IntSet(file,"Wired",0);
dini_IntSet(file,"Jailed",0);
dini_IntSet(file,"Money",0);
dini_IntSet(file,"Score",0);
dini_IntSet(file,"Gov",0);
SendClientMessage(playerid, blue,"{0080FF}Il tuo NickName non и presente nel nostro server. Registrati digitando {FF0000} /register {0080FF}per continuare.");
}
strcat(AgPlayerInfo[playerid][PLAYER_NAME2], dini_Get(file,"Name"));
strcat(AgPlayerInfo[playerid][PLAYER_IP2], dini_Get(file,"Ip"));
AgPlayerInfo[playerid][PLAYER_REGGED2]= dini_Int(file,"Registered");
AgPlayerInfo[playerid][PLAYER_PASS2] = dini_Int(file,"Password");
AgPlayerInfo[playerid][PLAYER_LEVEL2] = dini_Int(file,"Level");
AgPlayerInfo[playerid][PLAYER_WIRED2] = dini_Int(file,"Wired");
AgPlayerInfo[playerid][PLAYER_JAILED2] = dini_Int(file,"Jailed");
AgPlayerInfo[playerid][PLAYER_MONEY2] = dini_Int(file,"Money");
AgPlayerInfo[playerid][PLAYER_SCORE2] = dini_Int(file,"Score");
AgPlayerInfo[playerid][PLAYER_GOV2] = dini_Int(file,"Gov");
Reply


Messages In This Thread
File read/write question - by psoftware - 01.01.2011, 18:42
Re: File read/write question - by Grim_ - 01.01.2011, 18:43
Re: File read/write question - by psoftware - 01.01.2011, 19:05
Re: File read/write question - by Grim_ - 01.01.2011, 19:10
Re: File read/write question - by psoftware - 01.01.2011, 19:21
Re: File read/write question - by _rAped - 01.01.2011, 19:22
Re: File read/write question - by Grim_ - 01.01.2011, 19:22

Forum Jump:


Users browsing this thread: 1 Guest(s)