Error that cannot repair
#1

Aye im starting as a new scripter i edited something in one gf edits TO know how to script because i want to script own Roleplay but i need to learn so this is two errors

(9349) : error 047: array sizes do not match, or destination array is too small
(27149) : error 047: array sizes do not match, or destination array is too small

and dunnoh how to repair it anyone could help?
Reply
#2

"array sizes do not match, or destination array is too small". That means, that the array (an array is e.g. "Bla[16]") is too small, that means you have to increase the number (e.g. here 16, from "Bla[16]") to something higher (e.g. "Bla[128]" or "Bla[256]"). I hope you understood it.

Cheers.
Reply
#3

Could you post here those lines, and the ones around them?
Reply
#4

here it is from line 9349

pawn Код:
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "San Andreas Special Force";

pawn Код:
else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "San Andreas Special Force"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
from 27149

and there isnt any array in the script i checked
Reply
#5

"PlayerInfo[targetid][pMember]" is an array, for example.

By the way: use "[Pawn ] CODE [ /Pawn]" if you want to enter code into the topic. It looks like this then:

pawn Код:
new string[128];
format(string, sizeof(string), "The code will be in a box with syntax highlighter then.");
Reply
#6

Quote:
Originally Posted by ∈ⅹitus
"PlayerInfo[targetid][pMember]" is an array, for example.

By the way: use "[Pawn ] CODE [ /Pawn]" if you want to enter code into the topic. It looks like this then:

pawn Код:
new string[128];
format(string, sizeof(string), "The code will be in a box with syntax highlighter then.");
okay thank you i will

but any one can help me with this?
Reply
#7

sorry for double post but i need to repair it >.<
Reply
#8

Please post the lines where you declared PlayerInfo.

This place might look like this:
pawn Код:
new PlayerInfo[MAX_PLAYERS][aInfo];
Reply
#9

Something like that?

pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];

enum hInfo
{
    Float:hEntrancex,
    Float:hEntrancey,
    Float:hEntrancez,
    Float:hExitx,
    Float:hExity,
    Float:hExitz,
    hHealthx,
    hHealthy,
    hHealthz,
    hArmourx,
    hArmoury,
    hArmourz,
    hOwner[MAX_PLAYER_NAME],
    hDiscription[MAX_PLAYER_NAME],
    hValue,
    hHel,
    hArm,
    hInt,
    hLock,
    hOwned,
    hRooms,
    hRent,
    hRentabil,
    hTakings,
    hVec,
    hVcol1,
    hVcol2,
    hDate,
    hLevel,
    hWorld
};
Reply
#10

anyone know how to repair it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)