Pawno Compiler is not compiling my file.
#1

Hello, Pawno is not compiling my file, i think it
had some error, but i don't know where the errors
are. It don't show what the errors is, i get only a
message of "Pawno Compiler stopped working" and
then it shuts down. I uploaded my .pwn script, so
if someone of you can look at it, i'll be really happy.

http://www.megaupload.com/?d=PTJ5BY30

Reply
#2

Код:
	// End Admin CMDS
	if (strcmp("/suicide", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		return 1;
	}
  return 1;
  }
Код:
	// End Admin CMDS
	if (strcmp("/suicide", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		return 1;
	}
Reply
#3

Pastebin please?
Quote:
Originally Posted by N000000b :)
Код:
	// End Admin CMDS
	if (strcmp("/suicide", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		return 1;
	}
  return 1;
  }
Код:
	// End Admin CMDS
	if (strcmp("/suicide", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		return 1;
	}
Btw It should be
Код:
if (strcmp(cmdtext,"/suicide", true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		return 1;
	}
Reply
#4

Quote:
Originally Posted by DJDhan
Pastebin please?
Quote:
Originally Posted by N000000b :)
Код:
	// End Admin CMDS
	if (strcmp("/suicide", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		return 1;
	}
  return 1;
  }
Код:
	// End Admin CMDS
	if (strcmp("/suicide", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		return 1;
	}
Btw It should be
Код:
if (strcmp(cmdtext,"/suicide", true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		return 1;
	}
Why is that 10 there?

OP: Can you please upload the script to pastebin so i can read it?
Reply
#5

Pastebin Link :
http://pastebin.com/j0ZcyMmc
Reply
#6

Did you remove the bracket near /suicide command?
Reply
#7

The main reason why Pawno donґt compile and crash is that you have to much brackets or false brackets.
Check your script if all brackets are right

I think this is the reason why it donґt compile.

Example:

{
bla bla bla;
{
return 1;
{

--> Pawno will crash
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)