SA-MP Forums Archive
pawno compiler map - 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)
+--- Thread: pawno compiler map (/showthread.php?tid=625159)



pawno compiler map - KNIGHT786 - 28.12.2016

hi guys i have have map when i try to compile it it shows these errors


D:\supers\New folder\filterscripts\map dark.pwn(663) : error 030: compound statement not closed at the end of file (started at line 9)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


some lines
Код:
#include <streamer>


public OnFilterScriptInit()
{

CreateObject(3279, 236.35368, 1894.04663, 16.82031,   356.85840, 0.00000, 3.14159);
CreateObject(3279, 266.08273, 1831.06982, 16.82031,   356.85840, 0.00000, 3.14159);
CreateObject(713, -2539.59644, 1296.70972, 15.47656,   0.00000, 0.00000, 0.00000);
CreateObject(16294, 17.46014, 1756.77283, 21.61719,   356.85840, 0.00000, 3.14159);
CreateObject(3277, 17.26112, 1754.64014, 22.37500,   356.85840, 0.00000, 3.14159);
CreateObject(3267, 17.06108, 1754.70557, 22.41406,   356.85840, 0.00000, 3.14159);
CreateObject(1232, -1483.11768, 824.52734, 9.06470,   356.85840, 0.00000, 3.14160);



Re: pawno compiler map - AndreiWow - 28.12.2016

Код:
public OnFilterScriptInit()
{

CreateObject(3279, 236.35368, 1894.04663, 16.82031,   356.85840, 0.00000, 3.14159);
CreateObject(3279, 266.08273, 1831.06982, 16.82031,   356.85840, 0.00000, 3.14159);
CreateObject(713, -2539.59644, 1296.70972, 15.47656,   0.00000, 0.00000, 0.00000);
CreateObject(16294, 17.46014, 1756.77283, 21.61719,   356.85840, 0.00000, 3.14159);
CreateObject(3277, 17.26112, 1754.64014, 22.37500,   356.85840, 0.00000, 3.14159);
CreateObject(3267, 17.06108, 1754.70557, 22.41406,   356.85840, 0.00000, 3.14159);
CreateObject(1232, -1483.11768, 824.52734, 9.06470,   356.85840, 0.00000, 3.14160);
return 1;
}

You forgot to close it with "}"


Re: pawno compiler map - KNIGHT786 - 29.12.2016

ooh thanks rep+


Re: pawno compiler map - Yaa - 29.12.2016

and you forgot a_samp include

PHP код:
#include <a_samp>
#include <streamer>
public OnFilterScriptInit()
{
      
CreateObject(3279236.353681894.0466316.82031,   356.858400.000003.14159);
      
CreateObject(3279266.082731831.0698216.82031,   356.858400.000003.14159);
      
CreateObject(713, -2539.596441296.7097215.47656,   0.000000.000000.00000);
      
CreateObject(1629417.460141756.7728321.61719,   356.858400.000003.14159);
      
CreateObject(327717.261121754.6401422.37500,   356.858400.000003.14159);
      
CreateObject(326717.061081754.7055722.41406,   356.858400.000003.14159);
      
CreateObject(1232, -1483.11768824.527349.06470,   356.858400.000003.14160);
      return 
1;




Re: pawno compiler map - Sew_Sumi - 29.12.2016

If you're using the streamer, then use its functions. Don't mix and match as it will cause trouble and end up confusing you.