Mapping issue
#1

Okay, I got 2 things that are wrong with my map.

1st, I get a lot of errors, the errors are

Код:
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(3) : warning 235: public function lacks forward declaration (symbol "OnGamemodeInit")
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(5) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(6) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(7) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(8) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(9) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(10) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(11) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(12) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(13) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(14) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(15) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(16) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(17) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(18) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(19) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(20) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(21) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(22) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(23) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(24) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(25) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(26) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(27) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(28) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(29) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\dakota pittman\Desktop\samp03z_sv\filterscripts\Map.pwn(30) : error 017: undefined symbol "CreateDynamicObject"

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


26 Errors.
2nd, when I usually get it fixed, the objects do not show up.

The code is

Код:
#include <a_samp>

public OnGamemodeInit()
{
CreateDynamicObject(3578, 341.70001, -141.5, 1.2, 0, 0, 270);
CreateDynamicObject(3279, 341, -156.89999, 0.4, 0, 0, 0);
CreateDynamicObject(854, 345, -143.10001, 0.7, 0, 0, 0);
CreateDynamicObject(816, 347.39999, -139.89999, 0.8, 0, 0, 0);
CreateDynamicObject(1681, 340.29999, -154.7, 9.3, 225, 219, 48);
CreateDynamicObject(807, 343.29999, -156.39999, 8.3, 0, 0, 0);
CreateDynamicObject(3525, 339.60001, -153, 12.5, 0, 0, 0);
CreateDynamicObject(2780, 340.60001, -153.8, 10.3, 0, 0, 0);
CreateDynamicObject(1218, 344.29999, -151, 1.1, 0, 99, 0);
CreateDynamicObject(1218, 343.60001, -158.39999, 8.6, 93, 98.998, 203);
CreateDynamicObject(1218, 344.70001, -156.5, 8.6, 92.999, 98.998, 2);
CreateDynamicObject(10984, 341.70001, -160.10001, 1.5, 0, 0, 270);
CreateDynamicObject(3578, 333.70001, -171.60001, 0.9, 0, 0, 9);
CreateDynamicObject(3578, 332.70001, -130.3, 1.2, 0, 0, 8.998);
CreateDynamicObject(3578, 319.5, -142.2, 1.2, 0, 0, 269.995);
CreateDynamicObject(11011, 153.39999, -145, 5.1, 0, 0, 0);
CreateDynamicObject(3269, 340.89999, -159.39999, 2.5, 0, 0, 0);
CreateDynamicObject(828, 155.5, -147.7, 2.6, 0, 0, 0);
CreateDynamicObject(853, 156.7, -144.10001, 2.7, 0, 0, 0);
CreateDynamicObject(975, 182.3, -121.6, 5.2, 0, 0, 0);
CreateDynamicObject(1237, 185.5, -118.9, 0.5, 0, 0, 0);
CreateDynamicObject(1237, 182.3, -118.9, 0.5, 0, 0, 0);
CreateDynamicObject(3260, 184.5, -92.8, 1.5, 0, 0, 0);
CreateDynamicObject(3260, 182.60001, -92.9, 3, 0, 0, 0);
CreateDynamicObject(7657, 206.8, -118.2, 2.3, 0, 0, 45);
CreateDynamicObject(7657, 207.3, -95.5, 2.3, 0, 0, 288);
CreateDynamicObject(3577, 178.8, -123, 8.4, 351, 0, 0);
CreateDynamicObject(1712, 178.2, -118.7, 6.7, 351, 0, 236);
CreateDynamicObject(2991, 182.8, -93.7, 2.7, 0, 99, 270);
CreateDynamicObject(2991, 184.60001, -93.6, 1.2, 0, 98.998, 269.995);
CreateDynamicObject(1491, 185.39999, -121.7, 0.6, 0, 0, 194);
CreateDynamicObject(1491, 182.3, -122.2, 0.5, 0, 0, 0);
CreateDynamicObject(981, -282.10001, -152.39999, 1.1, 0, 0, 81);
CreateDynamicObject(3578, -277.10001, -160.8, 2.3, 0, 0, 270);
CreateDynamicObject(3578, -275.79999, -148.60001, 2.2, 0, 0, 269.995);
CreateDynamicObject(1491, 249.7, -52.7, 0.6, 0, 0, 270);
CreateDynamicObject(1491, 243.39999, -52.3, 0.6, 0, 0, 0);
CreateDynamicObject(4022, 181.5, -71.3, 3.5, 0, 0, 66);
CreateDynamicObject(10985, 188.2, -73, 2.1, 0, 0, 0);
CreateDynamicObject(2973, 328.10001, -80.2, 0.7, 0, 0, 236);
CreateDynamicObject(3043, 325.89999, -77.4, 1.9, 0, 0, 38);
CreateDynamicObject(2991, 327.39999, -71.7, 1.1, 0, 0, 214);
CreateDynamicObject(18260, 277.70001, -71.6, 2, 0, 0, 99);
CreateDynamicObject(1362, 283.20001, -77.3, 1, 0, 0, 0);
CreateDynamicObject(1362, 281.89999, -67.4, 1, 0, 0, 0);
CreateDynamicObject(3525, 281.79999, -67.6, 1.2, 0, 0, 0);
CreateDynamicObject(3525, 283.29999, -77.2, 1.2, 0, 0, 0);
CreateDynamicObject(3578, 282.70001, -84.5, 1.2, 0, 0, 0);
CreateDynamicObject(3578, 270.10001, -71.4, 1.2, 0, 0, 99);
CreateDynamicObject(3578, 289.29999, -72, 1.2, 0, 0, 98.998);
CreateDynamicObject(920, 279.70001, -71.9, 0.9, 0, 0, 99);
CreateDynamicObject(927, 279.39999, -70.7, 1.4, 0, 0, 99);
CreateDynamicObject(929, 278.89999, -68.4, 1.4, 0, 0, 189);
CreateDynamicObject(952, 232.60001, -212.8, 1.8, 0, 0, 56);
CreateDynamicObject(960, 234.39999, -209.10001, 0.8, 0, 0, 0);
CreateDynamicObject(2861, 234.60001, -211.39999, 0.4, 0, 0, 0);
CreateDynamicObject(933, 230.3, -208, 0.4, 0, 0, 0);
CreateDynamicObject(911, 232.39999, -220.3, 1, 0, 0, 0);
CreateDynamicObject(3073, 233.89999, -198.5, 2.1, 0, 0, 275);
CreateDynamicObject(2971, 179.8, -175.39999, 0.4, 0, 0, 268.999);
CreateDynamicObject(2950, 180.2, -177.10001, 138, 0, 0, 0);
CreateDynamicObject(2890, 174.89999, -173.5, 0.6, 0, 0, 270);
CreateDynamicObject(1358, 189.3, -182.10001, 1.8, 0, 0, 0);
return 1;
}
Reply
#2

your getting the errors cos of the OnGameModeInit.

Objects not showing up can be a bit weird sometimes.
Reply
#3

You need #include <streamer>
Reply
#4

you need streamer plugin from Incognito.

Edit:
PHP код:
public OnGamemodeInit()

Change to
PHP код:
public OnGameModeInit()

Reply
#5

xganyx when ur posting code change it to pawn code instead of php code.
Reply
#6

Okay, got the latest version of streamer and all the errors are fixed and I only got one warning which was from OnGamemodeInit, how to fix it?

EDIT: Now it compiled and I still cannot see the objects.

Note, I did use MTA and converted it and the code turned out perfect, but it won't work for some reason.
Reply
#7

Do you see my post
pawn Код:
public OnGamemodeInit()
{
to
pawn Код:
public OnGameModeInit()
{
Reply
#8

Its the same...
Reply
#9

the
pawn Код:
public OnGamemodeInit()
{
Is OnGamemodeInit the mode should be Mode.
here
pawn Код:
#include <a_samp>
#include <streamer>

public OnGameModeInit()
{
CreateDynamicObject(3578, 341.70001, -141.5, 1.2, 0, 0, 270);
CreateDynamicObject(3279, 341, -156.89999, 0.4, 0, 0, 0);
CreateDynamicObject(854, 345, -143.10001, 0.7, 0, 0, 0);
CreateDynamicObject(816, 347.39999, -139.89999, 0.8, 0, 0, 0);
CreateDynamicObject(1681, 340.29999, -154.7, 9.3, 225, 219, 48);
CreateDynamicObject(807, 343.29999, -156.39999, 8.3, 0, 0, 0);
CreateDynamicObject(3525, 339.60001, -153, 12.5, 0, 0, 0);
CreateDynamicObject(2780, 340.60001, -153.8, 10.3, 0, 0, 0);
CreateDynamicObject(1218, 344.29999, -151, 1.1, 0, 99, 0);
CreateDynamicObject(1218, 343.60001, -158.39999, 8.6, 93, 98.998, 203);
CreateDynamicObject(1218, 344.70001, -156.5, 8.6, 92.999, 98.998, 2);
CreateDynamicObject(10984, 341.70001, -160.10001, 1.5, 0, 0, 270);
CreateDynamicObject(3578, 333.70001, -171.60001, 0.9, 0, 0, 9);
CreateDynamicObject(3578, 332.70001, -130.3, 1.2, 0, 0, 8.998);
CreateDynamicObject(3578, 319.5, -142.2, 1.2, 0, 0, 269.995);
CreateDynamicObject(11011, 153.39999, -145, 5.1, 0, 0, 0);
CreateDynamicObject(3269, 340.89999, -159.39999, 2.5, 0, 0, 0);
CreateDynamicObject(828, 155.5, -147.7, 2.6, 0, 0, 0);
CreateDynamicObject(853, 156.7, -144.10001, 2.7, 0, 0, 0);
CreateDynamicObject(975, 182.3, -121.6, 5.2, 0, 0, 0);
CreateDynamicObject(1237, 185.5, -118.9, 0.5, 0, 0, 0);
CreateDynamicObject(1237, 182.3, -118.9, 0.5, 0, 0, 0);
CreateDynamicObject(3260, 184.5, -92.8, 1.5, 0, 0, 0);
CreateDynamicObject(3260, 182.60001, -92.9, 3, 0, 0, 0);
CreateDynamicObject(7657, 206.8, -118.2, 2.3, 0, 0, 45);
CreateDynamicObject(7657, 207.3, -95.5, 2.3, 0, 0, 288);
CreateDynamicObject(3577, 178.8, -123, 8.4, 351, 0, 0);
CreateDynamicObject(1712, 178.2, -118.7, 6.7, 351, 0, 236);
CreateDynamicObject(2991, 182.8, -93.7, 2.7, 0, 99, 270);
CreateDynamicObject(2991, 184.60001, -93.6, 1.2, 0, 98.998, 269.995);
CreateDynamicObject(1491, 185.39999, -121.7, 0.6, 0, 0, 194);
CreateDynamicObject(1491, 182.3, -122.2, 0.5, 0, 0, 0);
CreateDynamicObject(981, -282.10001, -152.39999, 1.1, 0, 0, 81);
CreateDynamicObject(3578, -277.10001, -160.8, 2.3, 0, 0, 270);
CreateDynamicObject(3578, -275.79999, -148.60001, 2.2, 0, 0, 269.995);
CreateDynamicObject(1491, 249.7, -52.7, 0.6, 0, 0, 270);
CreateDynamicObject(1491, 243.39999, -52.3, 0.6, 0, 0, 0);
CreateDynamicObject(4022, 181.5, -71.3, 3.5, 0, 0, 66);
CreateDynamicObject(10985, 188.2, -73, 2.1, 0, 0, 0);
CreateDynamicObject(2973, 328.10001, -80.2, 0.7, 0, 0, 236);
CreateDynamicObject(3043, 325.89999, -77.4, 1.9, 0, 0, 38);
CreateDynamicObject(2991, 327.39999, -71.7, 1.1, 0, 0, 214);
CreateDynamicObject(18260, 277.70001, -71.6, 2, 0, 0, 99);
CreateDynamicObject(1362, 283.20001, -77.3, 1, 0, 0, 0);
CreateDynamicObject(1362, 281.89999, -67.4, 1, 0, 0, 0);
CreateDynamicObject(3525, 281.79999, -67.6, 1.2, 0, 0, 0);
CreateDynamicObject(3525, 283.29999, -77.2, 1.2, 0, 0, 0);
CreateDynamicObject(3578, 282.70001, -84.5, 1.2, 0, 0, 0);
CreateDynamicObject(3578, 270.10001, -71.4, 1.2, 0, 0, 99);
CreateDynamicObject(3578, 289.29999, -72, 1.2, 0, 0, 98.998);
CreateDynamicObject(920, 279.70001, -71.9, 0.9, 0, 0, 99);
CreateDynamicObject(927, 279.39999, -70.7, 1.4, 0, 0, 99);
CreateDynamicObject(929, 278.89999, -68.4, 1.4, 0, 0, 189);
CreateDynamicObject(952, 232.60001, -212.8, 1.8, 0, 0, 56);
CreateDynamicObject(960, 234.39999, -209.10001, 0.8, 0, 0, 0);
CreateDynamicObject(2861, 234.60001, -211.39999, 0.4, 0, 0, 0);
CreateDynamicObject(933, 230.3, -208, 0.4, 0, 0, 0);
CreateDynamicObject(911, 232.39999, -220.3, 1, 0, 0, 0);
CreateDynamicObject(3073, 233.89999, -198.5, 2.1, 0, 0, 275);
CreateDynamicObject(2971, 179.8, -175.39999, 0.4, 0, 0, 268.999);
CreateDynamicObject(2950, 180.2, -177.10001, 138, 0, 0, 0);
CreateDynamicObject(2890, 174.89999, -173.5, 0.6, 0, 0, 270);
CreateDynamicObject(1358, 189.3, -182.10001, 1.8, 0, 0, 0);
return 1;
}
Reply
#10

The objects are still not showing, although the warning is gone.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)