SetDisabledWeapons
#1

I all,i use SFTDM V.4.6.1 and with:

SetDisabledWeapons(44,45,38,35,36);//44=nightvision, 45=thermal, 38=minigun, 35-36=rocket

If i try to complie,it gives me an error :S

But the GM works succesfully :S...how i can resolve this?

If i remove the code,when i enter in the server,i cant see cars and players..

please help
Reply
#2

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
I all,i use SFTDM V.4.6.1 and with:

SetDisabledWeapons(44,45,38,35,36);//44=nightvision, 45=thermal, 38=minigun, 35-36=rocket

If i try to complie,it gives me an error :S

But the GM works succesfully :S...how i can resolve this?

If i remove the code,when i enter in the server,i cant see cars and players..

please help
SetDisabledWeapons() is deprecated and you should use the alternatives in OnPlayerUpdate(), as SA-MP server says.
it is removed since 0.3
Reply
#3

SetPlayerDiasabledWeapons was removed in 0.2X

Use the SetPlayerInterior function to solve that.
Reply
#4

Done with SetPlayerInterior but..

Код:
C:\Documents and Settings\Utente\Desktop\sftdm4.6.1.pwn(259) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Utente\Desktop\sftdm4.6.1.pwn(259) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Utente\Desktop\sftdm4.6.1.pwn(259) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.


And with OnPlayerUpdate

Код:
C:\Documents and Settings\Utente\Desktop\sftdm4.6.1.pwn(259) : error 004: function "OnPlayerUpdate" is not implemented
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#5

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Done with SetPlayerInterior but..

Код:
C:\Documents and Settings\Utente\Desktop\sftdm4.6.1.pwn(259) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Utente\Desktop\sftdm4.6.1.pwn(259) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Utente\Desktop\sftdm4.6.1.pwn(259) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.


And with OnPlayerUpdate

Код:
C:\Documents and Settings\Utente\Desktop\sftdm4.6.1.pwn(259) : error 004: function "OnPlayerUpdate" is not implemented
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
OnPlayerUpdate() is not a function, it's a callback, and you should find it in a_samp.inc
and it's not just an alternatives of SetDisabledWeapons(), as OnPlayerUpdate() is called when a player sends a packet to the server,
you need to revise your script to keep that feature alive. thanks.
Reply
#6

So?What i need to do?
Reply
#7

I'm not deeply sure,but try this code I made earlier today:
http://pastebin.ca/1931802


pawn Код:
SetDisabledWeapons2(yourweapons);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)