Help with Messages
#1

MIstake by me so sry it was a simple error i didn't saw it -Removed
Reply
#2

array entries should be separated by a comma, the last entry not. eg:

pawn Код:
new HelloWorld[10] = {0,1,2,3,4,5,6,7,8,9};
//is just the same like:
new HelloWorld[10] =
{
    0,
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    9//no comma
};
//and if you need to do it with strings:
new HelloWorld[10][32] = //10 is the amount of entries, 32 the max string size
{
    "abc",
    "def",
    "ghi",
    "jkl",
    "mno",
    "pqr",
    "stu",
    "vwx",
    "yz",
    "abcdefghijklmnopqrstuvwxyz"//no comma
};
//and removed some entries:
new HelloWorld[7][32] =
{
    "abc",
    "def",
    "ghi",
    "jkl",
    "mno",
    "stu",
    "vwx"//no comma
};
however (not related to the topic) enumerators may have the last entry ending with a comma.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)