SA-MP Forums Archive
Array sizes do not match - 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: Array sizes do not match (/showthread.php?tid=274347)



Array sizes do not match - Scarred - 05.08.2011

So, I have this in my enum:

pawn Код:
Title[128]
and i'm trying to do:

pawn Код:
cInfo[playerid][Title] = "Event Winner";
and i'm getting the error:

Quote:

error 047: array sizes do not match, or destination array is too small

What's wrong with what i'm doing?


Re: Array sizes do not match - MadeMan - 05.08.2011

Use format.


Re: Array sizes do not match - iPLEOMAX - 05.08.2011

format(cInfo[playerid][Title],128,"Event Winner");


Re: Array sizes do not match - Scarred - 05.08.2011

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Use format.
Quote:
Originally Posted by iPLEOMAX
Посмотреть сообщение
format(cInfo[playerid][Title],128,"Event Winner");
Oh, duh. Sorry guys, still exhausted. Thank you!