[HELP]GivePlayerWeapon
#1

I use a dialog box for ammunation.

Код:
if(listitem == 0)
	  {
	  GivePlayerWeapon(playerid,346,500);
	  GivePlayerMoney(playerid, -500);
	  }
This is the code i use for each weapon. But when i click the option it give -500 dollars but not weapons. For any weapon id it doesnt work. Help me.
Reply
#2

"GivePlayerWeapon(playerid,346,500);"

LOL?

Should be

pawn Код:
GivePlayerWeapon(playerid,46,500);//Parachute
Reply
#3

You are giving invalid weapon IDs. I believe you are putting the model instead of the id.

Please check here for a list of all of the IDs (the far left column).
https://sampwiki.blast.hk/wiki/Weapons

For example, an M4 = 31 not 356.
Reply
#4

Thank you. I gave the Model number instead of ID.
thank you very much
Please help me at this topic
http://forum.sa-mp.com/index.php?top...0179#msg870179
Reply
#5

Quote:
Originally Posted by deather
Thank you. I gave the Model number instead of ID.
thank you very much
Please help me at this topic
http://forum.sa-mp.com/index.php?top...0179#msg870179
It happend me the same sometime ago
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)