SA-MP Forums Archive
small mapping probelm - 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: small mapping probelm (/showthread.php?tid=632577)



small mapping probelm - Mido10 - 16.04.2017

Someone posted their code of mapping a bank interior which I can't put in my script and press compile which gives me a lot of warnings. You know that creating objects in the script is 'CreateObject' not 'CreateDynamicObject'. We need to convert it using convertffs.com.

Actually, he posted a link for the code, but it includes 'SetDynamicObjectMaterial' which I can't convert. We can only convert objects or vehicles. Anyways, I'm giving you the link of the code and tell me what changes I could make so it can fit the script(using pawno).

https://pastebin.com/1BLNfSSB


Re: small mapping probelm - sams90 - 16.04.2017

https://pastebin.com/SmgTi0JY


Re: small mapping probelm - Mido10 - 16.04.2017

Quote:
Originally Posted by sams90
Посмотреть сообщение
I got warnings. Some help?

error 017: undefined symbol "AT_bank_int"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line


Re: small mapping probelm - Mido10 - 16.04.2017

Any solutions?!


Re: small mapping probelm - Zav1337 - 17.04.2017

I had no problems with compiling the original code you gave us (https://pastebin.com/1BLNfSSB).. Try using original, by original I mean non-converted code.. Just use Incognito's streamer plugin and include (#include <streamer>).


Re: small mapping probelm - sams90 - 17.04.2017

Quote:
Originally Posted by Mido10
Посмотреть сообщение
I got warnings. Some help?

error 017: undefined symbol "AT_bank_int"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
add this at the top of your script.
new AT_bank_int[299];


Re: small mapping probelm - Mido10 - 17.04.2017

Quote:
Originally Posted by sams90
Посмотреть сообщение
How did you convert it from Dynamic to non-Dynamic?