SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 19/12/2011, 03:36 PM   #1
seanny
High-roller
 
seanny's Avatar
 
Join Date: Oct 2010
Posts: 1,429
Reputation: 41
Default Stupid error, Please help (Rep+)

Hello, I am getting this error

Code:
C:\Users\Shaun\Desktop\LSC-RP\gamemodes\san-rp.pwn(1523) : error 008: must be a constant expression;
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Code:
new PedSkins[176] = {
    {299},  {3},//The Error is here
    {4},    {5},
    {6},    {7},
    {8},    {10},
    {42},   {65},
    {86},   {119},
    {149},  {208},
    {273},  {289},
    {101},  {12},
    {13},   {14},
    {15},   {151},
    {156},  {168},
    {170},  {182},
    {54},   {183},
    {184},  {75},
    {19},   {216},
    {20},   {206},
    {210},  {214},
    {215},  {221},
    {225},  {226},
    {223},  {231},
    {228},  {234},
    {76},   {235},
    {236},  {89},
    {88},   {218},
    {240},  {250},
    {261},  {40},
    {41},   {35},
    {37},   {38},
    {36},   {44},
    {43},   {46},
    {9},    {93},
    {39},   {48},
    {47},   {262},
    {229},  {58},
    {59},   {60},
    {232},  {233},
    {67},   {7},
    {72},   {55},
    {94},   {95},
    {98},   {56},
    {128},  {129},
    {130},  {131},
    {132},  {133},
    {157},  {158},
    {159},  {160},
    {196},  {197},
    {198},  {199},
    {161},  {162},
    {200},  {201},
    {202},  {31},
    {32},   {33},
    {34},   {138},
    {139},  {140},
    {145},  {146},
    {154},  {251},
    {92},   {97},
    {45},   {18},
    {258},  {259},
    {26},   {51},
    {52},   {80},
    {81},   {23},
    {96},   {99},
    {11},   {148},
    {153},  {167},
    {68},   {171},
    {172},  {179},
    {189},  {155},
    {205},  {209},
    {217},  {211},
    {219},  {260},
    {16},   {27},
    {264},  {70},
    {152},  {178},
    {237},  {238},
    {243},  {244},
    {207},  {245},
    {246},  {85},
    {256},  {257},
    {64},   {63},
    {87},   {90},
    {192},  {193},
    {194},  {134},
    {135},  {137},
    {181},  {213},
    {212},  {230},
    {239},  {249},
    {241},  {242},
    {29},   {49},
    {50},   {57},
    {62},   {66},
    {73},   {77},
    {78},   {79},
    {82},   {83},
    {84}
};
__________________
I'm no longer part of the SA-MP scene. I will not respond to any support requests.
Developer @ Outlaw Games Studio
https://discord.gg/BR2FCTm
seanny is offline   Reply With Quote
Old 19/12/2011, 03:48 PM   #2
Dark_Kostas
Gangsta
 
Join Date: Dec 2007
Location: Greece, Athens
Posts: 542
Reputation: 17
Default Re: Stupid error, Please help (Rep+)

new PedSkins[176][1] or (better do the 2nd) leave it as it is now and change your values like that.

{1, 2, 3, 4, 5}; instead of {1}, {2}, {3};
__________________
Quote:
Help != Scripting for you.

Give a man a fish he eats for a day, teach a man to fish he eats for a life time.
Dark_Kostas is offline   Reply With Quote
Old 19/12/2011, 03:51 PM   #3
Drebin
High-roller
 
Drebin's Avatar
 
Join Date: Oct 2010
Posts: 1,102
Reputation: 569
Default AW: Stupid error, Please help (Rep+)

pawn Code:
new PedSkins[176] = {
    299,  3,
    4,    5,
    6,    7,
    8,    10,
    42,   65,
    86,   119,
    149,  208,
    273,  289,
    101,  12,
    13,   14,
    15,   151,
    156,  168,
    170,  182,
    54,   183,
    184,  75,
    19,   216,
    20,   206,
    210,  214,
    215,  221,
    225,  226,
    223,  231,
    228,  234,
    76,   235,
    236,  89,
    88,   218,
    240,  250,
    261,  40,
    41,   35,
    37,   38,
    36,   44,
    43,   46,
    9,    93,
    39,   48,
    47,   262,
    229,  58,
    59,   60,
    232,  233,
    67,   7,
    72,   55,
    94,   95,
    98,   56,
    128,  129,
    130,  131,
    132,  133,
    157,  158,
    159,  160,
    196,  197,
    198,  199,
    161,  162,
    200,  201,
    202,  31,
    32,   33,
    34,   138,
    139,  140,
    145,  146,
    154,  251,
    92,   97,
    45,   18,
    258,  259,
    26,   51,
    52,   80,
    81,   23,
    96,   99,
    11,   148,
    153,  167,
    68,   171,
    172,  179,
    189,  155,
    205,  209,
    217,  211,
    219,  260,
    16,   27,
    264,  70,
    152,  178,
    237,  238,
    243,  244,
    207,  245,
    246,  85,
    256,  257,
    64,   63,
    87,   90,
    192,  193,
    194,  134,
    135,  137,
    181,  213,
    212,  230,
    239,  249,
    241,  242,
    29,   49,
    50,   57,
    62,   66,
    73,   77,
    78,   79,
    82,   83,
    84
};
__________________


GamerX - The SA-MP legend.
Online since 2006.

188.165.219.63:8800
www.gamerxserver.com
Drebin is offline   Reply With Quote
Old 19/12/2011, 03:53 PM   #4
suhrab_mujeeb
Guest
 
Posts: n/a
Default Re: Stupid error, Please help (Rep+)

So now u can distinct between stupid and genius errors? I didn't know 0.3d had that feature too.
  Reply With Quote
Old 19/12/2011, 04:03 PM   #5
seanny
High-roller
 
seanny's Avatar
 
Join Date: Oct 2010
Posts: 1,429
Reputation: 41
Default Re: Stupid error, Please help (Rep+)

None of them work.
__________________
I'm no longer part of the SA-MP scene. I will not respond to any support requests.
Developer @ Outlaw Games Studio
https://discord.gg/BR2FCTm
seanny is offline   Reply With Quote
Old 19/12/2011, 04:13 PM   #6
Tee
Gangsta
 
Join Date: Sep 2010
Posts: 836
Reputation: 81
Default Re: Stupid error, Please help (Rep+)

pawn Code:
new PedSkins[176] =
{
    299,  3,
    4,    5,
    6,    7,
    8,    10,
    42,   65,
    86,   119,
    149,  208,
    273,  289,
    101,  12,
    13,   14,
    15,   151,
    156,  168,
    170,  182,
    54,   183,
    184,  75,
    19,   216,
    20,   206,
    210,  214,
    215,  221,
    225,  226,
    223,  231,
    228,  234,
    76,   235,
    236,  89,
    88,   218,
    240,  250,
    261,  40,
    41,   35,
    37,   38,
    36,   44,
    43,   46,
    9,    93,
    39,   48,
    47,   262,
    229,  58,
    59,   60,
    232,  233,
    67,   7,
    72,   55,
    94,   95,
    98,   56,
    128,  129,
    130,  131,
    132,  133,
    157,  158,
    159,  160,
    196,  197,
    198,  199,
    161,  162,
    200,  201,
    202,  31,
    32,   33,
    34,   138,
    139,  140,
    145,  146,
    154,  251,
    92,   97,
    45,   18,
    258,  259,
    26,   51,
    52,   80,
    81,   23,
    96,   99,
    11,   148,
    153,  167,
    68,   171,
    172,  179,
    189,  155,
    205,  209,
    217,  211,
    219,  260,
    16,   27,
    264,  70,
    152,  178,
    237,  238,
    243,  244,
    207,  245,
    246,  85,
    256,  257,
    64,   63,
    87,   90,
    192,  193,
    194,  134,
    135,  137,
    181,  213,
    212,  230,
    239,  249,
    241,  242,
    29,   49,
    50,   57,
    62,   66,
    73,   77,
    78,   79,
    82,   83,
    84,
 
};
__________________
1.3 inch/360 - pretty high for precision
Tee is offline   Reply With Quote
Old 19/12/2011, 04:19 PM   #7
Dark_Kostas
Gangsta
 
Join Date: Dec 2007
Location: Greece, Athens
Posts: 542
Reputation: 17
Default Re: Stupid error, Please help (Rep+)

Quote:
Originally Posted by Tee View Post
pawn Code:
new PedSkins[176] =
{
    299,  3,
    4,    5,
    6,    7,
    8,    10,
    42,   65,
    86,   119,
    149,  208,
    273,  289,
    101,  12,
    13,   14,
    15,   151,
    156,  168,
    170,  182,
    54,   183,
    184,  75,
    19,   216,
    20,   206,
    210,  214,
    215,  221,
    225,  226,
    223,  231,
    228,  234,
    76,   235,
    236,  89,
    88,   218,
    240,  250,
    261,  40,
    41,   35,
    37,   38,
    36,   44,
    43,   46,
    9,    93,
    39,   48,
    47,   262,
    229,  58,
    59,   60,
    232,  233,
    67,   7,
    72,   55,
    94,   95,
    98,   56,
    128,  129,
    130,  131,
    132,  133,
    157,  158,
    159,  160,
    196,  197,
    198,  199,
    161,  162,
    200,  201,
    202,  31,
    32,   33,
    34,   138,
    139,  140,
    145,  146,
    154,  251,
    92,   97,
    45,   18,
    258,  259,
    26,   51,
    52,   80,
    81,   23,
    96,   99,
    11,   148,
    153,  167,
    68,   171,
    172,  179,
    189,  155,
    205,  209,
    217,  211,
    219,  260,
    16,   27,
    264,  70,
    152,  178,
    237,  238,
    243,  244,
    207,  245,
    246,  85,
    256,  257,
    64,   63,
    87,   90,
    192,  193,
    194,  134,
    135,  137,
    181,  213,
    212,  230,
    239,  249,
    241,  242,
    29,   49,
    50,   57,
    62,   66,
    73,   77,
    78,   79,
    82,   83,
    84,
 
};
You shouldn't use comma at the last one. Also its the same as Drebin provided and i said.
__________________
Quote:
Help != Scripting for you.

Give a man a fish he eats for a day, teach a man to fish he eats for a life time.
Dark_Kostas is offline   Reply With Quote
Old 19/12/2011, 04:29 PM   #8
seanny
High-roller
 
seanny's Avatar
 
Join Date: Oct 2010
Posts: 1,429
Reputation: 41
Default Re: Stupid error, Please help (Rep+)

It does not work!!!!
__________________
I'm no longer part of the SA-MP scene. I will not respond to any support requests.
Developer @ Outlaw Games Studio
https://discord.gg/BR2FCTm
seanny is offline   Reply With Quote
Old 19/12/2011, 04:37 PM   #9
Dark_Kostas
Gangsta
 
Join Date: Dec 2007
Location: Greece, Athens
Posts: 542
Reputation: 17
Default Re: Stupid error, Please help (Rep+)

Quote:
Originally Posted by seanny View Post
It does not work!!!!
Is the compiler crashing? Is your computer restarting? Is the earth jumping up and down? TELL US WHAT DOESN'T WORK and what errors do you get.
__________________
Quote:
Help != Scripting for you.

Give a man a fish he eats for a day, teach a man to fish he eats for a life time.
Dark_Kostas is offline   Reply With Quote
Old 19/12/2011, 04:40 PM   #10
DjSterios
Big Clucker
 
Join Date: Jan 2008
Posts: 98
Reputation: 0
Default Re: Stupid error, Please help (Rep+)

Give us the code of these lines: 1520 -1525
DjSterios is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stupid error a_big Help Archive 1 27/07/2011 02:25 AM
Can't fix this stupid error! austin070 Help Archive 7 16/03/2011 03:04 AM
Stupid error.. ThePwherer Help Archive 1 30/01/2011 06:58 PM
stupid error Futurezx Help Archive 21 05/06/2009 05:14 PM


All times are GMT. The time now is 09:07 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.