SA-MP Forums Archive
Again problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Again problem (/showthread.php?tid=468974)



Again problem - Gamo - 11.10.2013

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


Re: Again problem - xVIP3Rx - 11.10.2013

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


Re: Again problem - EiresJason - 11.10.2013

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"
};



Re: Again problem - Gamo - 11.10.2013

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.




Re: Again problem - -=Dar[K]Lord=- - 11.10.2013

You should define these vars as Array to carry strings..


Re: Again problem - Gamo - 11.10.2013

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



Re: Again problem - EiresJason - 11.10.2013

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"
};



Re: Again problem - Gamo - 11.10.2013

dark i did not get u


Re: Again problem - -=Dar[K]Lord=- - 11.10.2013

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


Re: Again problem - xVIP3Rx - 11.10.2013

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