Need some help
#1

Trying to add Family skins but it isn't working out.
pawn Код:
stock SaveFamilies()
{
    new idx;
    new File: file2;
    while (idx < sizeof(FamilyInfo))
    {
        new coordsstring[256];
        format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%s|%d|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
        FamilyInfo[idx][FamilyTaken],
        FamilyInfo[idx][FamilyName],
        FamilyInfo[idx][FamilyMOTD],
        FamilyInfo[idx][FamilyColor],
        FamilyInfo[idx][FamilyLeader],
        FamilyInfo[idx][FamilyMembers],
        FamilyInfo[idx][FamilySpawn][0],
        FamilyInfo[idx][FamilySpawn][1],
        FamilyInfo[idx][FamilySpawn][2],
        FamilyInfo[idx][FamilySpawn][3],
        FamilyInfo[idx][FamilyInterior]);
        FamilyInfo[idx][FamilySkins], // LINE 36876
        FamilyInfo[idx][FamilySkin1], // LINE 36877
        FamilyInfo[idx][FamilySkin2], // LINE 36878
        FamilyInfo[idx][FamilySkin3], // LINE 36879
        FamilyInfo[idx][FamilySkin4], // LINE 36880
        FamilyInfo[idx][FamilySkin5], // LINE 36881
        FamilyInfo[idx][FamilySkin6], // LINE 36882
        FamilyInfo[idx][FamilySkin7], // LINE 36883
        FamilyInfo[idx][FamilySkin8], // LINE 36884
        if(idx == 0) // LINE 36885
        { // LINE 36886
            file2 = fopen(FAMILIES_PATH, io_write); // LINE 36887
        } // LINE 36889
        else // LINE 36890
        { // LINE 36891
            file2 = fopen(FAMILIES_PATH, io_append); // LINE 36892
        } // LINE 36893
        fwrite(file2, coordsstring); // LINE 36894
        idx++; // LINE 36895
        fclose(file2); // LINE 36896
    } // LINE 36897
    return 1; // LINE 36898
}// LINE 36899
pawn Код:
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876) : warning 215: expression has no effect
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876 -- 36877) : warning 215: expression has no effect
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876 -- 36878) : warning 215: expression has no effect
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876 -- 36879) : warning 215: expression has no effect
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876 -- 36880) : warning 215: expression has no effect
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876 -- 36881) : warning 215: expression has no effect
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876 -- 36882) : warning 215: expression has no effect
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876 -- 36883) : warning 215: expression has no effect
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876 -- 36884) : warning 215: expression has no effect
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36876 -- 36885) : error 029: invalid expression, assumed zero
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36885 -- 36886) : error 029: invalid expression, assumed zero
C:\Users\Bart\Desktop\Roleplayer\Roleplayer\gamemodes\goonfather.pwn(36889) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply


Messages In This Thread
Need some help - by Sasoft - 19.08.2012, 12:01
Re: Need some help - by avivelkayam - 19.08.2012, 12:06
Re: Need some help - by Sasoft - 19.08.2012, 12:10
Re: Need some help - by Youice - 19.08.2012, 12:12
Re: Need some help - by avivelkayam - 19.08.2012, 12:16

Forum Jump:


Users browsing this thread: 1 Guest(s)