Jump to content
  • 0

Ajutor


TheDanutzelu

Question

D:\Easy DeAMX\Easy DeAMX\Createclan.pwn(10) : warning 217: loose indentation

D:\Easy DeAMX\Easy DeAMX\Createclan.pwn(15) : error 017: undefined symbol "bigstrtok"

D:\Easy DeAMX\Easy DeAMX\Createclan.pwn(24) : error 030: compound statement not closed at the end of file (started at line 12)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Prima eroare, pune sus in script:

#pragma tabsize 0
A 2-a eroare, pune asta undeva in script:
bigstrtok(const stringstrtok[], &index)
{
	new length = strlen(stringstrtok);
	while ((index < length) && (stringstrtok[index] <= ' ')) { index++; }

	new offset = index, result[20];
	while ((index < length) && (stringstrtok[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = stringstrtok[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}
A treia eroare, nu ai inchis undeva o
#if defined ...
se inchide cu
#endif

EDIT: Cookie, daca pleci asta e, NU NE PASA, il ajuta altcineva, spre exemplu: eu !

EDIT2: AcSy, daca nu stii, nu te baga, nu e bine ce ai zis.

Link to comment
Share on other sites

Baga asta in GM pentru prima eroare :

strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}

Nu este definit strtok. Iar la a doua eroare posibil sa fie o paranteza uitata deschisa .

Believe in yourself !

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.