[HELP] Creating a new Ammunation
#1

Hey I need to add a new Ammunation to my server.

I'm a total noob to this scripting shit so please bear with me.

This is probably easy to most of you but not for me.

By doing research, I found a piece of code that creates a new Ammunation... however, its not as easy as adding one line of code to my gamemode.

I've done further research but cannot move forward because I don't understand.

Код:
CreateAmmunation(-1980.4841,883.7144,45.2031,88.6781,0,1);
^^I know where to add that... but when I do, I get this: error 017: undefined symbol "CreateAmmunation"

What exactly do I do from here? Please be as detailed as possible.
Reply
#2

You can't just make up functions and expect them to work, otherwise you would just do CreateServer(genre[], name[]); and your script would be 1 line long.

What exactly do you need? I presume you will need the object of the ammunation exterior, and a pickup/checkpoint at the door to enter the interior.
Reply
#3

Could you link us to where you found it?
Reply
#4

Quote:
Originally Posted by MP2
Посмотреть сообщение
You can't just make up functions and expect them to work, otherwise you would just do CreateServer(genre[], name[]); and your script would be 1 line long.

What exactly do you need? I presume you will need the object of the ammunation exterior, and a pickup/checkpoint at the door to enter the interior.
I didn't make it up. I found it on SA:MP wiki.

Yes I need to place an exterior at those coordinates with a pickup/checkpoint at the door.
Reply
#5

Found what on the samp wiki? Link please.
Reply
#6

Quote:
Originally Posted by blank.
Посмотреть сообщение
Could you link us to where you found it?
Quote:
Originally Posted by MP2
Посмотреть сообщение
Found what on the samp wiki? Link please.
Sure...
https://sampwiki.blast.hk/wiki/YSI:Addin...es#Ammunations
Reply
#7

I guess you need to download YSI then.
Reply
#8

Quote:
Originally Posted by Incog_Nito
Посмотреть сообщение
I'm a total noob to this scripting shit so please bear with me.
How dare you Call Scripting SHIT Huh?
Reply
#9

Quote:
Originally Posted by MP2
Посмотреть сообщение
I guess you need to download YSI then.
Thats it? The YSI will have the function or whatever in it so that all I have to do is add the CreatAmmunation to my gamemode?

Quote:
Originally Posted by Phyrunx
Посмотреть сообщение
How dare you Call Scripting SHIT Huh?
Scripting stuff.

Better?
Reply
#10

Still need this.

Somebody plz help a newby out.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)