a Help?
#1

SOrry For trouble
I wanna use THIS Gamemode.
BUt when I edit it Its Shows An Error:
Код:
D:\Stunt Universe\gamemodes\SU.pwn(213) : error 017: undefined symbol "SetDisabledWeapons"
A added all the includes(in the rar file) in my pawno/include folder

Help!
Reply
#2

Hello!

https://sampwiki.blast.hk/wiki/SetDisabledWeapons
Read this link.
Reply
#3

That function has been disabled. You cannot use it.
Reply
#4

So what now?
Reply
#5

Quote:
Originally Posted by RathTheBeast
Посмотреть сообщение
So what now?
Well, as stated by the wiki; you can detect weapons upon the OnPlayerUpdate callback instead and disable them through there.

So, the first thing you would need to do, is remove all instances of the depreciated function you are using, and instead use something of this nature:

Код:
public OnPlayerUpdate (playerid)
{
	new weapon = GetPlayerWeapon (playerid);
	
	if (weapon == 38 || weapon == 35) //disables minigun and RPG
	{
		SetPlayerArmedWeapon(playerid, 0);
	}
	
	return 1;
}
To get a list of weapon ID's, check out: https://sampwiki.blast.hk/wiki/Weapons
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)