Compiling problem!
#1

Please help me, I am trying to compile my script, an these errors keep popping up! I do not know how to fix these. Here is what the error says.


C:\Users\darek\Desktop\Elite World Role Play\gamemodes\EliteRP.pwn(763) : error 029: invalid expression, assumed zero
C:\Users\darek\Desktop\Elite World Role Play\gamemodes\EliteRP.pwn(763 -- 765) : error 008: must be a constant expression; assumed zero
C:\Users\darek\Desktop\Elite World Role Play\gamemodes\EliteRP.pwn(32829) : warning 217: loose indentation
C:\Users\darek\Desktop\Elite World Role Play\gamemodes\EliteRP.pwn(32829) : error 029: invalid expression, assumed zero
C:\Users\darek\Desktop\Elite World Role Play\gamemodes\EliteRP.pwn(32829) : warning 215: expression has no effect
C:\Users\darek\Desktop\Elite World Role Play\gamemodes\EliteRP.pwn(32829) : error 001: expected token: ";", but found "]"
C:\Users\darek\Desktop\Elite World Role Play\gamemodes\EliteRP.pwn(32829) : error 029: invalid expression, assumed zero
C:\Users\darek\Desktop\Elite World Role Play\gamemodes\EliteRP.pwn(32829) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#2

posting the code from around the error lines eg (763, 32829) might help....
Reply
#3

750-765
"com1", "com2", "com3", "com4",
"com5", "com6", "com7", "com8",
"com9", "lpt4", "lpt5", "lpt6",
"lpt7", "lpt8", "lpt9", "nul",
"clock$", "aux", "prn", "con",
"InvalidNick"
};

// Main Menu Random Tooltips
new Tooltips[][] =
{
"Elite World Roleplay needs you to keep the server running! Donate today!",

}

new [212][MAX_MODS][4];



32819-32843
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
// SetWorldTime(tmphour);
gTime = tmphour;
}

[0][4] = {1013, 1024, 0, 0};
[0][6] = {1018, 1019, 1020, 1021};
[1][0] = {1001, 1003, 0, 0};
[1][1] = {1004, 1005, 0, 0};
[1][2] = {1006, 0, 0, 0};
[1][3] = {1007, 0, 0, 0};
[1][4] = {1013, 0, 0, 0};
[1][6] = {1019, 1020, 0, 0};
[1][12] = {1143, 1145, 0, 0};
[4][0] = {1002, 1016, 1000, 0};
[4][4] = {1013, 0, 0, 0};
[4][6] = {1019, 1020, 1021, 0};
[5][0] = {1000, 1001, 1014, 1023};
[5][6] = {1018, 1019, 1020, 1021};
[10][0] = {1001, 1003, 1023, 0};
Reply
#4

okay first of wrap the code in pawn tags next time
[ pawn] [ /pawn] without the spaces,

now the first error i think is this peice
pawn Код:
"Elite World Roleplay needs you to keep the server running! Donate today!",  //<~~~~~remove the comma!
only need the comma when you add more messages,


next
pawn Код:
}

[0][4] = {1013, 1024, 0, 0};
[0][6] = {1018, 1019, 1020, 1021};
[1][0] = {1001, 1003, 0, 0};
[1][1] = {1004, 1005, 0, 0};
[1][2] = {1006, 0, 0, 0};
[1][3] = {1007, 0, 0, 0};
[1][4] = {1013, 0, 0, 0};
[1][6] = {1019, 1020, 0, 0};
[1][12] = {1143, 1145, 0, 0};
[4][0] = {1002, 1016, 1000, 0};
[4][4] = {1013, 0, 0, 0};
[4][6] = {1019, 1020, 1021, 0};
[5][0] = {1000, 1001, 1014, 1023};
[5][6] = {1018, 1019, 1020, 1021};
[10][0] = {1001, 1003, 1023, 0};
that code has no var name and I have no clue as to what its trying todo.
Reply
#5

aha sorry, noob on the fourms

at line 765 it says

pawn Код:
new [212][MAX_MODS][4];
and the error is, error 001: expected token: ";", but found "new"

sorry, I am a noob at scripting, my friend has decided I could do some stuff to the script.
Reply
#6

pawn Код:
new [212][MAX_MODS][4] {
[0][4] = {1013, 1024, 0, 0};
[0][6] = {1018, 1019, 1020, 1021};
[1][0] = {1001, 1003, 0, 0};
[1][1] = {1004, 1005, 0, 0};
[1][2] = {1006, 0, 0, 0};
[1][3] = {1007, 0, 0, 0};
[1][4] = {1013, 0, 0, 0};
[1][6] = {1019, 1020, 0, 0};
[1][12] = {1143, 1145, 0, 0};
[4][0] = {1002, 1016, 1000, 0};
[4][4] = {1013, 0, 0, 0};
[4][6] = {1019, 1020, 1021, 0};
[5][0] = {1000, 1001, 1014, 1023};
[5][6] = {1018, 1019, 1020, 1021};
[10][0] = {1001, 1003, 1023, 0};
}
Reply
#7

nah, that isent it.
Reply
#8

well you cannot declare an array or anything for that matter like this

new [212][MAX_MODS][4];

you need a var name like
new SOMEVARNAME[212][MAX_MODS][4];

and the other code is just messed up
I suggest learning the language a little better first.
Download the pawn language ref from http://www.compuphase.com/pawn/pawn.htm#GETTINGSTARTED
and get to know the basics first.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)