SA-MP Forums Archive
Pawno Compiler is not compiling my file. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawno Compiler is not compiling my file. (/showthread.php?tid=153084)



Pawno Compiler is not compiling my file. - Ihsan_Cingisiz - 07.06.2010

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




Re: Pawno Compiler is not compiling my file. - [L3th4l] - 07.06.2010

Код:
	// 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;
	}



Re: Pawno Compiler is not compiling my file. - DJDhan - 07.06.2010

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



Re: Pawno Compiler is not compiling my file. - Kyosaur - 07.06.2010

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?


Re: Pawno Compiler is not compiling my file. - Ihsan_Cingisiz - 07.06.2010

Pastebin Link :
http://pastebin.com/j0ZcyMmc



Re: Pawno Compiler is not compiling my file. - MadeMan - 07.06.2010

Did you remove the bracket near /suicide command?


Re: Pawno Compiler is not compiling my file. - Flashy - 07.06.2010

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