09.01.2011, 14:47
First of all, this makes more sense:
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.
pawn Код:
GetPlayerName(leaderid, FactionSFPD[playerid][fLeader], 30)
dini_IntSet(SERVER_FACTION_SFPD_FILE, "Leaderl",FactionSFPD[playerid][fLeader]);
Next, are you sure you're defining fLeader as an array? Lets see the enum where you create it.