Error that cannot repair -
Namaco - 07.12.2009
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?
Re: Error that cannot repair -
DeathOnaStick - 07.12.2009
"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.
Re: Error that cannot repair -
Zamaroht - 07.12.2009
Could you post here those lines, and the ones around them?
Re: Error that cannot repair -
Namaco - 07.12.2009
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
Re: Error that cannot repair -
DeathOnaStick - 07.12.2009
"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.");
Re: Error that cannot repair -
Namaco - 07.12.2009
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?
Re: Error that cannot repair -
Namaco - 07.12.2009
sorry for double post but i need to repair it >.<
Re: Error that cannot repair -
DeathOnaStick - 07.12.2009
Please post the lines where you declared PlayerInfo.
This place might look like this:
pawn Код:
new PlayerInfo[MAX_PLAYERS][aInfo];
Re: Error that cannot repair -
Namaco - 07.12.2009
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
};
Re: Error that cannot repair -
Namaco - 07.12.2009
anyone know how to repair it?