Please need some help :D - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Please need some help :D (
/showthread.php?tid=181554)
Please need some help :D -
Tutrix - 06.10.2010
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
Re: Please need some help :D -
Voldemort - 06.10.2010
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);
Re: Please need some help :D -
Tutrix - 06.10.2010
thanks alot