SA-MP Forums Archive
Help Me ;( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help Me ;( (/showthread.php?tid=298189)



Help Me ;( - rokata555 - 19.11.2011

Код:
C:\Documents and Settings\Administrator\Desktop\BaseScript\filterscripts\sgt_dl.pwn(80) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\BaseScript\filterscripts\sgt_dl.pwn(80) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
AND THAT IS THAT

Код:
	{1235.1285,103.5985,20.9667},
	{1262.7439,98.6546,21.4350},
};
public OnFilterScriptInit()
{



Re: Help Me ;( - NessaHD - 19.11.2011

Could you post your whole callback?


Re: Help Me ;( - Infinity - 19.11.2011

Quote:
Originally Posted by cruteX_modshop
Посмотреть сообщение
Could you post your whole callback?
No need for that.

Quote:
Originally Posted by rokata555
Посмотреть сообщение
Код:
C:\Documents and Settings\Administrator\Desktop\BaseScript\filterscripts\sgt_dl.pwn(80) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\BaseScript\filterscripts\sgt_dl.pwn(80) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
AND THAT IS THAT

Код:
	{1235.1285,103.5985,20.9667},
	{1262.7439,98.6546,21.4350},
};
public OnFilterScriptInit()
{
Hmm, try this:

Код:
	{1235.1285,103.5985,20.9667},
	{1262.7439,98.6546,21.4350}
};
public OnFilterScriptInit()
{
[/QUOTE]

If I'm correct, it's the comma at the end of {1262.7439,98.6546,21.4350}, that broke it. It expects a statement after that, but you're not giving it any.
(Short version: No comma after the last one.)

Also, there's a scripting section a bit lower on the page, I'd figure you will get more help there.