Shortcut
#1

how more simple?
pawn Код:
FamilyInfo[family][FamilyGuns][0] = 0;
    FamilyInfo[family][FamilyGuns][2] = 0;
    FamilyInfo[family][FamilyGuns][3] = 0;
    FamilyInfo[family][FamilyGuns][4] = 0;
    FamilyInfo[family][FamilyGuns][5] = 0;
    FamilyInfo[family][FamilyGuns][6] = 0;
    FamilyInfo[family][FamilyGuns][7] = 0;
    FamilyInfo[family][FamilyGuns][8] = 0;
    FamilyInfo[family][FamilyGuns][9] = 0;
    FamilyInfo[family][FamilyGuns][10] = 0;
    FamilyInfo[family][FamilyGuns][11] = 0;
    FamilyInfo[family][FamilyGuns][12] = 0;
    FamilyInfo[family][FamilyGuns][13] = 0;
    FamilyInfo[family][FamilyGuns][14] = 0;
    FamilyInfo[family][FamilyGuns][15] = 0;
    FamilyInfo[family][FamilyGuns][16] = 0;
    FamilyInfo[family][FamilyGuns][17] = 0;
    FamilyInfo[family][FamilyGuns][18] = 0;
    FamilyInfo[family][FamilyGuns][19] = 0;
Reply
#2

Quote:
Originally Posted by Scott Zulkifli
Посмотреть сообщение
how more simple?
pawn Код:
FamilyInfo[family][FamilyGuns][0] = 0;
    FamilyInfo[family][FamilyGuns][2] = 0;
    FamilyInfo[family][FamilyGuns][3] = 0;
    FamilyInfo[family][FamilyGuns][4] = 0;
    FamilyInfo[family][FamilyGuns][5] = 0;
    FamilyInfo[family][FamilyGuns][6] = 0;
    FamilyInfo[family][FamilyGuns][7] = 0;
    FamilyInfo[family][FamilyGuns][8] = 0;
    FamilyInfo[family][FamilyGuns][9] = 0;
    FamilyInfo[family][FamilyGuns][10] = 0;
    FamilyInfo[family][FamilyGuns][11] = 0;
    FamilyInfo[family][FamilyGuns][12] = 0;
    FamilyInfo[family][FamilyGuns][13] = 0;
    FamilyInfo[family][FamilyGuns][14] = 0;
    FamilyInfo[family][FamilyGuns][15] = 0;
    FamilyInfo[family][FamilyGuns][16] = 0;
    FamilyInfo[family][FamilyGuns][17] = 0;
    FamilyInfo[family][FamilyGuns][18] = 0;
    FamilyInfo[family][FamilyGuns][19] = 0;
for(int i = 0; i < 20; i++) FamilyInfo[family][FamilyGuns][i] = 0;

EDIT: Use following in PAWN
for(new id; id < 20; id++) FamilyInfo[family][FamilyGuns][i] = 0;
Reply
#3

@samiras please post it as [pawn] BBcode, and you have an Error there

pawn Код:
for(new i = 0; i < 20; i++) FamilyInfo[family][FamilyGuns][i] = 0;
You forgot to type id instead of i.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)