SA-MP Forums Archive
[GM]Array Sizes help???? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: [GM]Array Sizes help???? (/showthread.php?tid=596031)



[GM]Array Sizes help???? - Pr0GreSiVe - 11.12.2015

How to solve this error?
Код:
D:\My Stuff\SAMP Gamemodes\hzrp\gamemodes\VGRP.pwn(9925) : error 047: array sizes do not match, or destination array is too small
D:\My Stuff\SAMP Gamemodes\hzrp\gamemodes\VGRP.pwn(58570) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
This is line number (9,925) of my gamemode ... wtf?
Код:
		else if(PlayerInfo[targetid][pDonator] == 6) { donatortxt = "Chartered Old-School"; }
if needed i can post the whole code where the error comes from, please me help out for this ... . !


Re: [GM]Array Sizes help???? - yvoms - 11.12.2015

your missing something on tht line.


Re: [GM]Array Sizes help???? - Pr0GreSiVe - 11.12.2015

Quote:
Originally Posted by yvoms
Посмотреть сообщение
your missing something on tht line.
Nevermind [SOLVED] , i just made a new cmd for the new donator levels i created and instead of Charted Old-School i made it short to COS and the gamemode compiled successfully!
that line "COS"
else if(PlayerInfo[targetid][pDonator] == 6) { donatortxt = "COS"; }


Re: [GM]Array Sizes help???? - StreetGT - 11.12.2015

increase the size of var donatortxt


Re: [GM]Array Sizes help???? - Pr0GreSiVe - 11.12.2015

Quote:
Originally Posted by StreetGT
Посмотреть сообщение
increase the size of var donatortxt
i think its this one if i am correct new donatortxt[16]; ?