Help with making a faction
#3

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
First of all, this makes more sense:

pawn Код:
GetPlayerName(leaderid, FactionSFPD[playerid][fLeader], 30)
dini_IntSet(SERVER_FACTION_SFPD_FILE, "Leaderl",FactionSFPD[playerid][fLeader]);
Which means there's no need for that wasteful allocation of memory that is new getname[30];

Next, are you sure you're defining fLeader as an array? Lets see the enum where you create it.
Here it is:
Код:
enum fFactionSFPD
{
    fLeader[30],
    fFactionName,
    fRank1,
    fRank2,
    fRank3,
    fRank4,
    fRank5,
    fSkin1,
    fSkin2,
    fSkin3,
    fSkin4,
    fSkin5,
    fSkin6,
}
Reply


Messages In This Thread
Help with making a faction - command won't work - by Outcast - 09.01.2011, 13:51
Re: Help with making a faction - by JaTochNietDan - 09.01.2011, 14:47
Re: Help with making a faction - by Outcast - 09.01.2011, 14:50
Re: Help with making a faction - by JaTochNietDan - 09.01.2011, 14:54
Re: Help with making a faction - by Outcast - 09.01.2011, 14:58
Re: Help with making a faction - by JaTochNietDan - 09.01.2011, 14:59
Re: Help with making a faction - by Outcast - 09.01.2011, 15:47
Re: Help with making a faction - by blackwave - 09.01.2011, 15:50
Re: Help with making a faction - by Outcast - 09.01.2011, 15:51
Re: Help with making a faction - by Calgon - 09.01.2011, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)