SA-MP Forums Archive
Hmm, errors. - 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: Hmm, errors. (/showthread.php?tid=234092)



Hmm, errors. - iGetty - 03.03.2011

Here is the error:

Код:
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : warning 215: expression has no effect
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : warning 215: expression has no effect
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : warning 215: expression has no effect
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : warning 215: expression has no effect
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : warning 215: expression has no effect
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : warning 215: expression has no effect
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : warning 215: expression has no effect
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Callum\Desktop\bank.pwn(10) : fatal error 107: too many error messages on one line

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


4 Errors.
Here is the script:

Код:
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
Create3DTextLabel("/getin",0x03B8FCFF,627.281127, -571.795166, 17.914501,10,0);
Create3DTextLabel("/policeonly\",0x03B8FCFF,246.575775, 71.704635, 1003.640625,10,0);
Create3DTextLabel("/getout",0x03B8FCFF,246.674545, 62.803779, 1003.640625,5,0);
Create3DTextLabel("/getin",0x03B8FCFF,691.182556, -546.797729, 16.335937,10,0);
Create3DTextLabel("/getout",0x03B8FCFF,-30.943420, -92.007476, 1003.546875,5,0);
Create3DTextLabel("/getin",0x03B8FCFF,681.555480, -473.355346, 16.536296,10,0);
Create3DTextLabel("/getout",0x03B8FCFF,493.441558, -24.893135, 1000.671875,5,0);
Create3DTextLabel("/goin",0x03B8FCFF,2464.802978, -39.446712, 27.562500,10,0);
Create3DTextLabel("/goout",0x03B8FCFF,1415.651855, -989.232177, 1639.784301,10,0);
Please can you help?


Re: Hmm, errors. - YungGee - 03.03.2011

which lines is line 10...And you did return the callback right?


Re: Hmm, errors. - grand.Theft.Otto - 03.03.2011

Hi again lol. #include <a_samp> should be at the VERY TOP of your script. Re-compile and tell me how it goes.


Re: Hmm, errors. - iGetty - 03.03.2011

Quote:
Originally Posted by YungGee
Посмотреть сообщение
which lines is line 10...And you did return the callback right?
It is the second one, and if you mean:

Код:
{
	return 1;
}
then yes.


Re: Hmm, errors. - YungGee - 03.03.2011

change

Create3DTextLabel("/policeonly\",0x03B8FCFF,246.575775, 71.704635, 1003.640625,10,0);

to

Create3DTextLabel("/policeonly",0x03B8FCFF,246.575775, 71.704635, 1003.640625,10,0);

i guess..Try it


Re: Hmm, errors. - iGetty - 03.03.2011

Quote:
Originally Posted by YungGee
Посмотреть сообщение
change

Create3DTextLabel("/policeonly\",0x03B8FCFF,246.575775, 71.704635, 1003.640625,10,0);

to

Create3DTextLabel("/policeonly",0x03B8FCFF,246.575775, 71.704635, 1003.640625,10,0);

i guess..Try it
I LOVE YOU! xD, thanks bro!