Raised This Month: $231 Target: $400
 57% 

[REQ] Errors fix plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lent
Junior Member
Join Date: Oct 2011
Old 08-27-2019 , 11:50   [REQ] Errors fix plugin
Reply With Quote #1

Hello,

So I have this plugin for biohazard, everything is fine, no compile errors, but I get this errors in my console, does anyone knows why ? Or can anyone fix them?

Quote:
Function is not present (function "SelectYourWeapons") (plugin "bio_last_human.amxx")
[AMXX] Displaying debug trace (plugin "bio_last_human.amxx")
[AMXX] Run time error 10: native error (native "set_task")
[AMXX] [0] bio_last_human.sma::CheckLastHuman (line 29
[AMXX] [1] bio_last_human.sma::CheckLastHuman (line 296)
Attached Files
File Type: sma Get Plugin or Get Source (bio_last_human.sma - 42 views - 14.8 KB)
lent is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 08-27-2019 , 13:22   Re: [REQ] Errors fix plugin
Reply With Quote #2

PHP Code:
set_task1.0"SelectYourWeapons"id ); 
There is no such function as SelectYourWeapons, it should be something like this

PHP Code:
public SelectYourWeapons(id){
//blablablabla

I am assuming that you want the survivor to choose a weapon from a menu or something, if you specify what weapons you want to show on the menu, I can make the function from scratch.
Moody92 is offline
lent
Junior Member
Join Date: Oct 2011
Old 08-27-2019 , 15:35   Re: [REQ] Errors fix plugin
Reply With Quote #3

Quote:
Originally Posted by Moody92 View Post
PHP Code:
set_task1.0"SelectYourWeapons"id ); 
There is no such function as SelectYourWeapons, it should be something like this

PHP Code:
public SelectYourWeapons(id){
//blablablabla

I am assuming that you want the survivor to choose a weapon from a menu or something, if you specify what weapons you want to show on the menu, I can make the function from scratch.

Hmm, can you do that? I mean the plugin works like that, when there is a last human, the system gives that person some speed, some hp, some armor and some gravity so he can fight vs all the zombies. So it should give him a weapon as well? Is there a chance for that person to receive a menu like csdm menu "/guns" so that person will choose any weapon he wants to fight with against zombies? And those weapons to have like +10 bullets more than usual? Like for example Shotgun has 8 bullets, so when that menu appears and he chooses Shotgun, he can use it with 18 bullets instead 8. That makes sense? Or is this possible in any way? If it is and you can do it, can I ask you to make it like this? Only if you have time and you want, of course. A menu to appear for the last human so he can choose the following weapons:

Primary weapons:

weapon_m4a1 +10 bullets more than usual
weapon_ak47 +10 bullets more than usual
weapon_xm1014 +10 bullets more than usual
weapon_m3 +10 bullets more than usual

Secondary weapons:

weapon_deagle +10 bullets more than usual
weapon_usp +10 bullets more than usual
weapon_elite +10 bullets more than usual

And to fill his Grenades inventory:

Flashbang(in this case, frostgrenade)
HeGrenade(In this case, napalmnade)
SmokeGrenade(In this case, smokeflare)

Is it possible to create a system like that?
lent is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 08-29-2019 , 09:49   Re: [REQ] Errors fix plugin
Reply With Quote #4

Here, I just made this quickly. I didn't do the ammo thing you requested. I will edit later, for now try this and tell me what else needs changing.
Attached Files
File Type: sma Get Plugin or Get Source (bio_last_human.sma - 62 views - 17.4 KB)
Moody92 is offline
lent
Junior Member
Join Date: Oct 2011
Old 08-29-2019 , 10:40   Re: [REQ] Errors fix plugin
Reply With Quote #5

Quote:
Originally Posted by Moody92 View Post
Here, I just made this quickly. I didn't do the ammo thing you requested. I will edit later, for now try this and tell me what else needs changing.
I'll test it and I will be back with edit answer !

EDIT: Works perfectly, thank you, really appreciate it xD !

Last edited by lent; 08-29-2019 at 13:40.
lent is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:52.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode