Please need some help :D
#1

I got two errors, on some codes that i cant see whats wrong.

here is the first one:
Код:
else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "262 Idlewood Families"; ChosenSkin[para1] = 102; SetPlayerSkin(para1, 102); }
This is the error: array sizes do not match, or destination array is too small

Code 2:
Код:
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "262 Idlewood Families"; }
Same error: error 047: array sizes do not match, or destination array is too small

Thanks, Alex
Reply
#2

Damn, !!!

Its already say to you whats wrong, why need spam forum?
set right lenght for strings
at
new ftext[size];
new ttext[size];

change size to max character count you are going to use here.
atm its looks with 24 should be fine.

if even than cant fix it use
pawn Код:
strmid(ftext,"262 Idlewood Families",0,strlen("262 Idlewood Families"),255);
strmid(ttext,"262 Idlewood Families",0,strlen("262 Idlewood Families"),255);
Reply
#3

thanks alot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)