#1

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
Reply
#2

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] = {
Reply
#3

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!" }
};
Reply
#4

thththththththththx xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)