10.10.2012, 22:24
Quote:
Could you stop coming here with every problem what you have? Its a tenth topic which i replying you. If you want to create a Gamemode then learn some scripting basics then go and do a RolePlay GM. I don't know why you're started of doing this GameMode.. that's a hard way of the first project.
By the way, show where you saving this code. |
LOL.
I appreciate your help, I have been working on this game-mode for months. Its just im not good with dynamic things, sorry for posting threads asking for help.
pawn Код:
SaveDynamicFaction() {
new
szFileStr[1024],
File: fHandle = fopen("Factions/Factions.cfg", io_write);
for(new iIndex; iIndex < MAX_GROUPS; iIndex++) {
format(szFileStr, sizeof(szFileStr), "%i|%i|%d|%s|%s|%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|$%i|%d\r\n",
arrFaction[iIndex][g_iFactionID],
arrFaction[iIndex][g_iFactionType],
arrFaction[iIndex][g_szFactionName],
arrFaction[iIndex][g_iLockerGuns],
arrFaction[iIndex][g_iLockerCost],
arrFaction[iIndex][g_iAllegiance],
arrFaction[iIndex][g_iBugAccess],
arrFaction[iIndex][g_iChatAccess],
arrFaction[iIndex][g_iRadioAccess],
arrFaction[iIndex][g_iDeptRadioAccess],
arrFaction[iIndex][g_hDutyColour],
arrFaction[iIndex][g_hRadioColour],
arrFaction[iIndex][g_iShareAssets],
arrFaction[iIndex][g_iLockerStock],
arrFaction[iIndex][g_fLockerPos],
arrFaction[iIndex][g_iLockerVW],
arrFaction[iIndex][g_fCratePos],
arrFaction[iIndex][g_iFacVault],
arrFaction[iIndex][g_t3DLabels]
);
fwrite(fHandle, szFileStr);
}
fclose(fHandle);
return 1;
}