One Pawn Error
#1

Hello guys, my pawno is giving me an error, and i need some help to fix it:
Код:
C:\Users\User\Desktop\RedCountyRoleplayBG\gamemodes\PCRP.pwn(1175 -- 1208) : error 032: array index out of bounds (variable "FamInfo")
My Lines:
pawn Код:
format(string, sizeof(string), "%d|%s|%s|%d|%s|%d|%f|%f|%f|%d|%d|%d|%d|%s|%s|%s|%s|%s|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\r\n",
        FamInfo[idx][fTaken],
        FamInfo[idx][fName],
        FamInfo[idx][fMOTD],
        FamInfo[idx][fColor],
        FamInfo[idx][fLeader],
        FamInfo[idx][fMembers],
        FamInfo[idx][fSafeX],
        FamInfo[idx][fSafeY],
        FamInfo[idx][fSafeZ],
        FamInfo[idx][fMoney],
        FamInfo[idx][fMats],
        FamInfo[idx][fWeed],
        FamInfo[idx][fCrack],
        FamInfo[idx][fRank1],
        FamInfo[idx][fRank2],
        FamInfo[idx][fRank3],
        FamInfo[idx][fRank4],
        FamInfo[idx][fRank5],
        FamInfo[idx][fRank6],
        FamInfo[idx][fSkins][0],
        FamInfo[idx][fSkins][1],
        FamInfo[idx][fSkins][2],
        FamInfo[idx][fSkins][3],
        FamInfo[idx][fSkins][4],
        FamInfo[idx][fSkins][5],
        FamInfo[idx][fSkins][6],
        FamInfo[idx][fStrikes],
        FamInfo[idx][fVehType][0], // Veh 1
        FamInfo[idx][fVehType][1], // Veh 2
        FamInfo[idx][fVehType][2], // Veh 3
        FamInfo[idx][fVehType][3], // Veh 4
        FamInfo[idx][fVehType][4], // Veh 5
        FamInfo[idx][fVehType][5], // Veh 6
Reply
#2

too many formats probably.

do half in 1 string and the other in another string then join them
Reply
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
too many formats probably.

do half in 1 string and the other in another string then join them

agreed :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)