Error could not compile! +REP
#1

I get this error when I compile the script..

Код:
D:\FunGaming Stunt-Freeroam\gamemodes\cod-e.pwn(632) : error 029: invalid expression, assumed zero
D:\FunGaming Stunt-Freeroam\gamemodes\cod-e.pwn(632) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Here is the line and some lines above it..

Код:
new RandomMessages[][] = {
  ""cgreen"********************",
  ""cgreen"********************",
  ""cgreen"********************.",
  ""cgreen"********************!",
  ""cgreen"********************.",
  ""cgreen"********************",
  ""cgreen"********************",
  ""cgreen"********************",
  ""cgreen"********************",
  ""cgreen"********************",
  ""cgreen"********************",
  ""cgreen"********************",
  ""cgreen"********************",
  };
Help plz +REP
Reply
#2

pawn Код:
new RandomMessages[][] = {
  "********************",
  "********************",
  "********************.",
  "********************!",
  "********************.",
  "********************",
  "********************",
  "********************",
  "********************",
  "********************",
  "********************",
  "********************",
  ""********************"
};
Reply
#3

Use code above

next time when you make randommessages.

dont forget to remove '','' at the end of the last random message.
Reply
#4

Yea remove the comma at the last line and remove the space before '};'. aboa is right!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)