Y_Ini load help
#1

Hello guys iam trying to make my own clan system on my gamemode i has done creating the saving system
when i Re-Log sa-mp thats still work creating my Clan Tag [GOGS]HolyScripter
but then i restart sa-mp server and i login back my clan tag not appear and the clan not loaded
this the code

Quote:
pawn Код:
forward LoadClan_data(clanid,name[],value[]);
public LoadClan_data(clanid,name[],value[])
{
    INI_Int("ID",ClanInfo[clanid][cId]);
    INI_Int("Color",ClanInfo[clanid][cColor]);
    INI_Int("Member",ClanInfo[clanid][cMember]);
    INI_String("Clan Name",ClanInfo[clanid][cName],128);
    INI_String("Clan Tag",ClanInfo[clanid][cTag],128);
    INI_String("Leader",ClanInfo[clanid][cLeader],128);
    return 1;
}

stock ClanPath(clanid)
{
    new string[128];
    format(string,sizeof(string),"DM/Clan/%s.ini",ClanInfo[clanid][cName]);
    return string;
}

This script is on player login :

new clanid = PlayerInfo[playerid][pClanMember];
INI_ParseFile(ClanPath(clanid), "LoadClan_%s", .bExtra = true, .extra = clanid);
cant someone help me ?
Reply


Messages In This Thread
Y_Ini load help - by HolyScripter - 26.02.2015, 00:15
Re: Y_Ini load help - by Rally - 26.02.2015, 00:24
Re: Y_Ini load help - by HolyScripter - 26.02.2015, 00:26
Re: Y_Ini load help - by HolyScripter - 26.02.2015, 05:58
Re: Y_Ini load help - by HolyScripter - 26.02.2015, 06:05
Re: Y_Ini load help - by Kenway - 26.02.2015, 06:18
Re: Y_Ini load help - by HolyScripter - 26.02.2015, 06:20
Re: Y_Ini load help - by Kenway - 26.02.2015, 06:23
Re: Y_Ini load help - by HolyScripter - 26.02.2015, 07:07
Re: Y_Ini load help - by HolyScripter - 26.02.2015, 09:32

Forum Jump:


Users browsing this thread: 1 Guest(s)