13.12.2013, 01:42
pawn Код:
Group_DisplayDialog(iPlayerID, iGroupID) {
new
szDialogStr[1024],
szTitle[32 + GROUP_MAX_NAME_LEN];
format(szDialogStr, sizeof szDialogStr,
"Name: %s\n\
Type: %s\n\
Allegiance: %s\n\
Radio access: %s (rank %i)\n\
Department radio access: %s (rank %i)\n\
Faction chat access: %s (rank %i)\n\
Bug access: %s (rank %i)\n\
Duty colour: {%6x}(edit){FFFFFF}\n\
Radio colour: {%6x}(edit){FFFFFF}\n\
Edit Locker Stock (%i)\n\
Edit Locker Weapons (%i defined)\n\
Edit Divisions (%i defined)\n\
Edit Ranks (%i defined)\n\
Edit Locker Position (current distance: %.0f)\n\
Edit Crate Delivery Position (current distance: %.0f)",
GroupData[iGroupID][g_szGroupName],
Group_ReturnType(GroupData[iGroupID][g_iGroupType]),
Group_ReturnAllegiance(GroupData[iGroupID][g_iAllegiance]),
((GroupData[iGroupID][g_iRadioAccess] != -1) ? ("Yes") : ("No")), GroupData[iGroupID][g_iRadioAccess] + 1,
((GroupData[iGroupID][g_iDeptRadioAccess] != -1) ? ("Yes") : ("No")), GroupData[iGroupID][g_iDeptRadioAccess] + 1,
((GroupData[iGroupID][g_iChatAccess] != -1) ? ("Yes") : ("No")), GroupData[iGroupID][g_iChatAccess] + 1,
((GroupData[iGroupID][g_iBugAccess] != -1) ? ("Yes") : ("No")), GroupData[iGroupID][g_iBugAccess] + 1,
GroupData[iGroupID][g_hDutyColour],
GroupData[iGroupID][g_hRadioColour],
GroupData[iGroupID][g_iLockerStock],
Array_Count(GroupData[iGroupID][g_iLockerGuns], MAX_GROUP_WEAPONS),
String_Count(GroupDivisions[iGroupID], MAX_GROUP_DIVS),
String_Count(GroupRanks[iGroupID], MAX_GROUP_RANKS),
GetPlayerDistanceFromPoint(iPlayerID, GroupData[iGroupID][g_fLockerPos][0], GroupData[iGroupID][g_fLockerPos][1], GroupData[iGroupID][g_fLockerPos][2]),
);
if(playerData[iPlayerID][pAdmin] >= 6) strcat(szDialogStr, "\nDisband Group");
format(szTitle, sizeof szTitle, "Edit Group {%6x}(%s)", GroupData[iGroupID][g_hDutyColour], GroupData[iGroupID][g_szGroupName]);
return ShowPlayerDialog(iPlayerID, DIALOG_EDITGROUP, DIALOG_STYLE_LIST, szTitle, szDialogStr, "Select", "Cancel");
}
: error 029: invalid expression, assumed zero
: error 001: expected token: ",", but found ";"
Any help would be much appreciated as I can't see anything and would like a 3rd person perspective