Again problem
#1

When i Compile i get this

Quote:

E:\Server\gamemodes\BF5.pwn(146) : error 029: invalid expression, assumed zero
E:\Server\gamemodes\BF5.pwn(146) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

here are the lines 144, 145, 146

Quote:

"{FF893A}<!> {FFFFFF}Capture zones to {FF0000}earn score instantly!",
"{FF893A}<!> {FFFFFF}Visit our website for more info:{FF0000} www.idealgamin.freeforums.org",
};

Help plzz
Reply
#2

What is that exactly ? Is it a message or a dialog ?
Can you explain or show the rest of the code ?
Reply
#3

The last entry is not suppose to have a comma.
pawn Код:
"{FF893A}<!> {FFFFFF}Capture zones to {FF0000}earn score instantly!",
"{FF893A}<!> {FFFFFF}Visit our website for more info:{FF0000} www.idealgamin.freeforums.org"
};
Reply
#4

well i copy paste what is in the script and quote it i removed , and did but this shows again

Quote:

E:\Server\gamemodes\BF5.pwn(146) : error 029: invalid expression, assumed zero
E:\Server\gamemodes\BF5.pwn(146 -- 149) : error 057: unfinished expression before compiler directive
E:\Server\gamemodes\BF5.pwn(166) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Reply
#5

You should define these vars as Array to carry strings..
Reply
#6

here is the lines frm 135 to 165

new RandomMSG[][] =
{
"{FF893A}<!> {FFFFFF}Welcome to the {FA0000}Ideal Gaming - {FF893A}Generation of {FF893A}Wars [TDM]",
"{FF893A}<!> {FFFFFF}Use {00CED1}/pm <ID> <TEXT> {FFFFFF}To send messages to player",
"{FF893A}<!> {FFFFFF}Kill the enemies and capture zone to {FF0000}earn score and rank",
"{FF893A}<!> {FFFFFF}Use {00CED1}/updates {FFFFFF}to check the latest version updates of the server",
"{FF893A}<!> {FFFFFF}Are you new here? use {FF0000}/help /cmds /rules",
"{FF893A}<!> {FFFFFF}Use {00CED1}/st {FFFFFF}to change your team and {FF0000}/sc {FFFFFF}to change your class",
"{FF893A}<!> {FFFFFF}If you are new here then use {FF0000}/register <PASSWORD> {FFFFFF}to save your stats!",
"{FF893A}<!> {FFFFFF}Capture zones to {FF0000}earn score instantly!",
"{FF893A}<!> {FFFFFF}Visit our website for more info:{FF0000} www.idealgamin.freeforums.org",
}


#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else
Reply
#7

You never removed the mistake that I posted :P

pawn Код:
new RandomMSG[][] =
{
"{FF893A}<!> {FFFFFF}Welcome to the {FA0000}Ideal Gaming - {FF893A}Generation of {FF893A}Wars [TDM]",
"{FF893A}<!> {FFFFFF}Use {00CED1}/pm <ID> <TEXT> {FFFFFF}To send messages to player",
"{FF893A}<!> {FFFFFF}Kill the enemies and capture zone to {FF0000}earn score and rank",
"{FF893A}<!> {FFFFFF}Use {00CED1}/updates {FFFFFF}to check the latest version updates of the server",
"{FF893A}<!> {FFFFFF}Are you new here? use {FF0000}/help /cmds /rules",
"{FF893A}<!> {FFFFFF}Use {00CED1}/st {FFFFFF}to change your team and {FF0000}/sc {FFFFFF}to change your class",
"{FF893A}<!> {FFFFFF}If you are new here then use {FF0000}/register <PASSWORD> {FFFFFF}to save your stats!",
"{FF893A}<!> {FFFFFF}Capture zones to {FF0000}earn score instantly!",
"{FF893A}<!> {FFFFFF}Visit our website for more info:{FF0000} www.idealgamin.freeforums.org"
};
Reply
#8

dark i did not get u
Reply
#9

pawn Код:
new RandomMSG[][]=
{
"{FF893A}<!> {FFFFFF}Welcome to the {FA0000}Ideal Gaming - {FF893A}Generation of {FF893A}Wars [TDM]",
"{FF893A}<!> {FFFFFF}Use {00CED1}/pm <ID> <TEXT> {FFFFFF}To send messages to player",
"{FF893A}<!> {FFFFFF}Kill the enemies and capture zone to {FF0000}earn score and rank",
"{FF893A}<!> {FFFFFF}Use {00CED1}/updates {FFFFFF}to check the latest version updates of the server",
"{FF893A}<!> {FFFFFF}Are you new here? use {FF0000}/help /cmds /rules",
"{FF893A}<!> {FFFFFF}Use {00CED1}/st {FFFFFF}to change your team and {FF0000}/sc {FFFFFF}to change your class",
"{FF893A}<!> {FFFFFF}If you are new here then use {FF0000}/register <PASSWORD> {FFFFFF}to save your stats!",
"{FF893A}<!> {FFFFFF}Capture zones to {FF0000}earn score instantly!",
"{FF893A}<!> {FFFFFF}Visit our website for more info:{FF0000} www.idealgamin.freeforums.org"
};
Its working on my pawno .. that too without any errors..

This thing above is the corrected code as per as my observation
Reply
#10

Quote:
Originally Posted by Gamo
Посмотреть сообщение
here is the lines frm 135 to 165

new RandomMSG[][] =
{
"{FF893A}<!> {FFFFFF}Welcome to the {FA0000}Ideal Gaming - {FF893A}Generation of {FF893A}Wars [TDM]",
"{FF893A}<!> {FFFFFF}Use {00CED1}/pm <ID> <TEXT> {FFFFFF}To send messages to player",
"{FF893A}<!> {FFFFFF}Kill the enemies and capture zone to {FF0000}earn score and rank",
"{FF893A}<!> {FFFFFF}Use {00CED1}/updates {FFFFFF}to check the latest version updates of the server",
"{FF893A}<!> {FFFFFF}Are you new here? use {FF0000}/help /cmds /rules",
"{FF893A}<!> {FFFFFF}Use {00CED1}/st {FFFFFF}to change your team and {FF0000}/sc {FFFFFF}to change your class",
"{FF893A}<!> {FFFFFF}If you are new here then use {FF0000}/register <PASSWORD> {FFFFFF}to save your stats!",
"{FF893A}<!> {FFFFFF}Capture zones to {FF0000}earn score instantly!",
"{FF893A}<!> {FFFFFF}Visit our website for more info:{FF0000} www.idealgamin.freeforums.org",
}


#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else
You should add ; at the end.. Did you try -=Dar[K]Lord=-'s code ?
Quote:
Originally Posted by -=Dar[K]Lord=-
Посмотреть сообщение
pawn Код:
new RandomMSG[][]=
{
"{FF893A}<!> {FFFFFF}Welcome to the {FA0000}Ideal Gaming - {FF893A}Generation of {FF893A}Wars [TDM]",
"{FF893A}<!> {FFFFFF}Use {00CED1}/pm <ID> <TEXT> {FFFFFF}To send messages to player",
"{FF893A}<!> {FFFFFF}Kill the enemies and capture zone to {FF0000}earn score and rank",
"{FF893A}<!> {FFFFFF}Use {00CED1}/updates {FFFFFF}to check the latest version updates of the server",
"{FF893A}<!> {FFFFFF}Are you new here? use {FF0000}/help /cmds /rules",
"{FF893A}<!> {FFFFFF}Use {00CED1}/st {FFFFFF}to change your team and {FF0000}/sc {FFFFFF}to change your class",
"{FF893A}<!> {FFFFFF}If you are new here then use {FF0000}/register <PASSWORD> {FFFFFF}to save your stats!",
"{FF893A}<!> {FFFFFF}Capture zones to {FF0000}earn score instantly!",
"{FF893A}<!> {FFFFFF}Visit our website for more info:{FF0000} www.idealgamin.freeforums.org"
};
Its working on my pawno .. that too without any errors..

This thing above is the corrected code as per as my observation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)