fusez map editor error
#1

hello can someone help me fix this code?

i get this error

Код:
mapedit/variables/materialsizes.pwn(15) : error 037: invalid string (possibly non-terminated string)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
here the code

Код:
new const g_MaterialSizeName[MAX_MATERIAL_SIZES][MAX_MATERIALSIZE_NAMELEN char] = {
	!"OBJECT_MATERIAL_SIZE_32x32",   // Index 0,  Defined Value 10
	!"OBJECT_MATERIAL_SIZE_64x32",   // Index 1,  Defined Value 20
	!"OBJECT_MATERIAL_SIZE_64x64",   // Index 2,  Defined Value 30
	!"OBJECT_MATERIAL_SIZE_128x32",  // Index 3,  Defined Value 40
	!"OBJECT_MATERIAL_SIZE_128x64",  // Index 4,  Defined Value 50
	!"OBJECT_MATERIAL_SIZE_128x128", // Index 5,  Defined Value 60
	!"OBJECT_MATERIAL_SIZE_256x32",  // Index 6,  Defined Value 70
	!"OBJECT_MATERIAL_SIZE_256x64",  // Index 7,  Defined Value 80
	!"OBJECT_MATERIAL_SIZE_256x128", // Index 8,  Defined Value 90
	!"OBJECT_MATERIAL_SIZE_256x256", // Index 9,  Defined Value 100
	!"OBJECT_MATERIAL_SIZE_512x64",  // Index 10, Defined Value 110
	!"OBJECT_MATERIAL_SIZE_512x128", // Index 11, Defined Value 120
	!"OBJECT_MATERIAL_SIZE_512x256", // Index 12, Defined Value 130
	!"OBJECT_MATERIAL_SIZE_512x512"  // Index 13, Defined Value 140 //error on this line
};
Reply
#2

You're missing a ; I guess ..

Код:
new const g_MaterialSizeName[MAX_MATERIAL_SIZES][MAX_MATERIALSIZE_NAMELEN char] = {
	!"OBJECT_MATERIAL_SIZE_32x32",   // Index 0,  Defined Value 10
	!"OBJECT_MATERIAL_SIZE_64x32",   // Index 1,  Defined Value 20
	!"OBJECT_MATERIAL_SIZE_64x64",   // Index 2,  Defined Value 30
	!"OBJECT_MATERIAL_SIZE_128x32",  // Index 3,  Defined Value 40
	!"OBJECT_MATERIAL_SIZE_128x64",  // Index 4,  Defined Value 50
	!"OBJECT_MATERIAL_SIZE_128x128", // Index 5,  Defined Value 60
	!"OBJECT_MATERIAL_SIZE_256x32",  // Index 6,  Defined Value 70
	!"OBJECT_MATERIAL_SIZE_256x64",  // Index 7,  Defined Value 80
	!"OBJECT_MATERIAL_SIZE_256x128", // Index 8,  Defined Value 90
	!"OBJECT_MATERIAL_SIZE_256x256", // Index 9,  Defined Value 100
	!"OBJECT_MATERIAL_SIZE_512x64",  // Index 10, Defined Value 110
	!"OBJECT_MATERIAL_SIZE_512x128", // Index 11, Defined Value 120
	!"OBJECT_MATERIAL_SIZE_512x256", // Index 12, Defined Value 130
	!"OBJECT_MATERIAL_SIZE_512x512";  // Index 13, Defined Value 140 // ; missing
};
I'm not sure .. I'm just tryin' to help, Try it anyway ^^
Reply
#3

Quote:
Originally Posted by MiiSha
Посмотреть сообщение
You're missing a ; I guess ..

Код:
new const g_MaterialSizeName[MAX_MATERIAL_SIZES][MAX_MATERIALSIZE_NAMELEN char] = {
	!"OBJECT_MATERIAL_SIZE_32x32",   // Index 0,  Defined Value 10
	!"OBJECT_MATERIAL_SIZE_64x32",   // Index 1,  Defined Value 20
	!"OBJECT_MATERIAL_SIZE_64x64",   // Index 2,  Defined Value 30
	!"OBJECT_MATERIAL_SIZE_128x32",  // Index 3,  Defined Value 40
	!"OBJECT_MATERIAL_SIZE_128x64",  // Index 4,  Defined Value 50
	!"OBJECT_MATERIAL_SIZE_128x128", // Index 5,  Defined Value 60
	!"OBJECT_MATERIAL_SIZE_256x32",  // Index 6,  Defined Value 70
	!"OBJECT_MATERIAL_SIZE_256x64",  // Index 7,  Defined Value 80
	!"OBJECT_MATERIAL_SIZE_256x128", // Index 8,  Defined Value 90
	!"OBJECT_MATERIAL_SIZE_256x256", // Index 9,  Defined Value 100
	!"OBJECT_MATERIAL_SIZE_512x64",  // Index 10, Defined Value 110
	!"OBJECT_MATERIAL_SIZE_512x128", // Index 11, Defined Value 120
	!"OBJECT_MATERIAL_SIZE_512x256", // Index 12, Defined Value 130
	!"OBJECT_MATERIAL_SIZE_512x512";  // Index 13, Defined Value 140 // ; missing
};
I'm not sure .. I'm just tryin' to help, Try it anyway ^^
Not working. thanks btw for your help. 30+ views only you replied to my thread. hehe
Reply
#4

Quote:
Originally Posted by MiiSha
Посмотреть сообщение
You're missing a ; I guess ..

Код:
new const g_MaterialSizeName[MAX_MATERIAL_SIZES][MAX_MATERIALSIZE_NAMELEN char] = {
	!"OBJECT_MATERIAL_SIZE_32x32",   // Index 0,  Defined Value 10
	!"OBJECT_MATERIAL_SIZE_64x32",   // Index 1,  Defined Value 20
	!"OBJECT_MATERIAL_SIZE_64x64",   // Index 2,  Defined Value 30
	!"OBJECT_MATERIAL_SIZE_128x32",  // Index 3,  Defined Value 40
	!"OBJECT_MATERIAL_SIZE_128x64",  // Index 4,  Defined Value 50
	!"OBJECT_MATERIAL_SIZE_128x128", // Index 5,  Defined Value 60
	!"OBJECT_MATERIAL_SIZE_256x32",  // Index 6,  Defined Value 70
	!"OBJECT_MATERIAL_SIZE_256x64",  // Index 7,  Defined Value 80
	!"OBJECT_MATERIAL_SIZE_256x128", // Index 8,  Defined Value 90
	!"OBJECT_MATERIAL_SIZE_256x256", // Index 9,  Defined Value 100
	!"OBJECT_MATERIAL_SIZE_512x64",  // Index 10, Defined Value 110
	!"OBJECT_MATERIAL_SIZE_512x128", // Index 11, Defined Value 120
	!"OBJECT_MATERIAL_SIZE_512x256", // Index 12, Defined Value 130
	!"OBJECT_MATERIAL_SIZE_512x512";  // Index 13, Defined Value 140 // ; missing
};
I'm not sure .. I'm just tryin' to help, Try it anyway ^^
that's just stupid why the hell you will put a semicolon after elements in arrays?If you are not sure don't bother to reply.Reply in topics you have catch on.


The code doesn't have any problem you are not showing the correct lines or trying to compile the modules in that script. Compile the main module of that script.if that didn't work re download the script from here https://github.com/fusez/Map-Editor-V2 and compile mapedit.pwn.
Reply
#5

I already saidthat I was just trying to help .. I was very unsure but .. who knew .. and I couldn't leave him with no answer .. if I didn't reply first you wouldn't ever reply to his thread or even see it .. so don't ever be making fun of others whom trying to help !
Reply
#6

Quote:
Originally Posted by MiiSha
Посмотреть сообщение
I already saidthat I was just trying to help .. I was very unsure but .. who knew .. and I couldn't leave him with no answer .. if I didn't reply first you wouldn't ever reply to his thread or even see it .. so don't ever be making fun of others whom trying to help !
I'm not making fun of you. You should spent sometime in sites like stackoverflow and you will understand what i said. Its all for this forums reputation if a guest sees this thread,who is rather a professional in these websites,its shameful for us.
Reply
#7

.. and after 8 months, the guy is still left with no answers don't thank me!
Reply
#8

Quote:
Originally Posted by MiiSha
Посмотреть сообщение
.. and after 8 months, the guy is still left with no answers don't thank me!
GhostHackers answer was better than yours... To fix it, make sure that they downloaded a clean version rather than a version that's been edited in who knows what way, as if it works via that one, then his copy is at fault.

No need to bump this to make out you did anything other than guess, as your answer was incorrect, and did nothing.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)