Two errors
#1

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");
}
So somewhere in this section there is an error giving me these two errors:

: 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
Reply
#2

hungarians everywhere!

and this line
Код:
        
		GetPlayerDistanceFromPoint(iPlayerID, GroupData[iGroupID][g_fLockerPos][0], GroupData[iGroupID][g_fLockerPos][1], GroupData[iGroupID][g_fLockerPos][2]),
remove the comma at the end
Reply
#3

Hungarian right here And yes, remove the comma.
Reply
#4

Yeah found it LOL and btw I'm not Hungarian, there's something wrong with my language settings on the forums for some reason.
Reply
#5

Quote:
Originally Posted by conor565
Посмотреть сообщение
Yeah found it LOL and btw I'm not Hungarian, there's something wrong with my language settings on the forums for some reason.
wasn't referring to you in particular, but yea..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)