Ajuda com DINI
#1

Galera eu sei que dini nao й la essas coisas mais to querendo aprender entao tentei e deu isso:
\CG RPG 0.1a\gamemodes\CGRPG.pwn(590) : error 047: array sizes do not match, or destination array is too small
\CG RPG 0.1a\gamemodes\CGRPG.pwn(595) : error 047: array sizes do not match, or destination array is too small

Respectivas linhas:
pawn Код:
VeiculoInfo[i][vDono] = dini_Get(vFile, "Dono");// 590
            VeiculoInfo[i][vPlaca] = dini_Get(vFile, "Placa");// 595
Enun:
pawn Код:
enum _VINFO
{
    vModel,
    vColor1,
    vColor2,
    vPrice,
    vDono[MAX_PLAYER_NAME],
    Float:vPosX,
    Float:vPosY,
    Float:vPosZ,
    Float:vPosA,
    vPlaca[32],
    vPaintJ,
    vTrancado
}
new VeiculoInfo[MAX_BUYABLE_VEH][_VINFO];
Reply
#2

A array й muito pequena pra acumular o valor posto nas tags Dono e Placa.
Acredito que vocк devesse usar format...
Reply
#3

pawn Код:
strmid(VeiculoInfo[i][vDono], dini_Get(vFile, "vDono"), 0, strlen(dini_Get(vFile, "vDono")), 255);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)