error - 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: error (
/showthread.php?tid=190151)
error -
iJumbo - 14.11.2010
hi i have this error
pawn Код:
error 018: initialization data exceeds declared size
and this is the code
pawn Код:
new RandomWeatherRandomMess[5][2] = {
{1,"Il tempo и molto soleggiato"},
{11,"Qui a san andreas fa molto caldo!"},
{8,"Piove a dirotto!"},
{32,"Nebbia fittissima prevista per i prossimi 20 minuti"},
{2009,"Il tempo и roseo oggi!"}
};
but idk how to declare the text size here
Re: error -
LarzI - 14.11.2010
Here you're both using an integer, and a string - therefore you need an enum.
pawn Код:
enum MyEnum
{
someValue,
someString[128]
};
pawn Код:
new RandomWeatherRandomMess[MyEnum] = {
Re: error -
smeti - 14.11.2010
Try:
pawn Код:
enum
RandomWeatherRandomMess_Enum
{
W_ID,
W_message[64]
};
new
RandomWeatherRandomMess[][RandomWeatherRandomMess_Enum] =
{
{ 1, "Il tempo e molto soleggiato" },
{ 11, "Qui a san andreas fa molto caldo!" },
{ 8, "Piove a dirotto!" },
{ 32, "Nebbia fittissima prevista per i prossimi 20 minuti" },
{ 2009, "Il tempo e roseo oggi!" }
};
Re: error -
iJumbo - 14.11.2010
thththththththththx xD