Raised This Month: $32 Target: $400
 8% 

VIP Plugin help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 08-29-2019 , 08:06   VIP Plugin help
Reply With Quote #1

hi

i worked on a VIP plugin which have lot of features & have a own vip menu in which u can register ur any extra items like a aaarnas zp vip plugin.
i took some code from zp vip plugin to make a menu for extra items registration & other code by myself but when i compile so i got lot of errors i fixed lot of errors but now soome errors left . i am confused about cvars error
Errors List


hey guys help me out.

Edit: Forgot To Add WPMGPrintChatColor.inc Now Added.
Attached Files
File Type: sma Get Plugin or Get Source (advanced_vip.sma - 146 views - 14.4 KB)
File Type: inc advanced_vip.inc (898 Bytes, 41 views)
File Type: inc WPMGPrintChatColor.inc (3.7 KB, 40 views)
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod

Last edited by DON KHAN 1; 08-29-2019 at 08:14. Reason: Forgot To Add WPMGPrintChatColor.inc
DON KHAN 1 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-29-2019 , 08:11   Re: VIP Plugin help
Reply With Quote #2

How do you expect us to help when you haven't provided the necessary includes to compile the code? WPMGPrintChatColor.inc is missing

Also, start using local compiler.
__________________
edon1337 is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 08-29-2019 , 08:16   Re: VIP Plugin help
Reply With Quote #3

oh sorry i forgot to add that.
added it.

i used local compiler too but i got same errors i fixed lot of error but the main confusion i have about the cvar idk how it is giving error.
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-29-2019 , 08:29   Re: VIP Plugin help
Reply With Quote #4

This code has many major mistakes. Like, you're trying to use items enum without creating it first.
PHP Code:
new extra_items[items]

enum _:items
{
    
i_name[31],
    
i_description[31],
    
i_cost,
    
i_team

Why are you creating the array in the native handler!?
PHP Code:
public native_vm_register_extra_item(const item_name[], const item_discription[], item_costitem_team)
{
        if(!
items_databaseitems_database ArrayCreate(items
Why are you comparing an integer with a bitwise operator?
PHP Code:
if(g_team[id] & extra_items[i_team]) { 
These are some of the many mistakes.
__________________

Last edited by edon1337; 08-29-2019 at 08:32.
edon1337 is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 08-29-2019 , 08:44   Re: VIP Plugin help
Reply With Quote #5

are you sure that you created cvar variables ?
PHP Code:
new cvar_variable 
LearninG is offline
I AM NOOB
Junior Member
Join Date: May 2019
Location: NEPAL BOARDER
Old 08-29-2019 , 09:08   Re: VIP Plugin help
Reply With Quote #6

As he said he just copied and pasted the codes from other plugin , you must change the code and make it suitable to use it
__________________
"Never think yourself as successfull ror DON because "
DON stands for DONKEY OF NATION

GIVE RESPECT = TAKE RESPECT

ONLY SIGNATURE , NO PERSONAL
I AM NOOB is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 08-29-2019 , 09:13   Re: VIP Plugin help
Reply With Quote #7

Quote:
Originally Posted by LearninG View Post
are you sure that you created cvar variables ?
PHP Code:
new cvar_variable 
yes i created.
PHP Code:
new g_av_armorg_av_gravityg_av_fall_damageg_av_damage_increase 
Quote:
Originally Posted by I AM NOOB View Post
As he said he just copied and pasted the codes from other plugin , you must change the code and make it suitable to use it

not whole code. just some code of vip menu damage & no fall damage code
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod

Last edited by DON KHAN 1; 08-29-2019 at 09:15. Reason: ..
DON KHAN 1 is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 08-29-2019 , 10:15   Re: VIP Plugin help
Reply With Quote #8

This source has many problems.
I would suggest you , to remake it from zero , and not to copy paste random codes from other plugins.

Last edited by LearninG; 08-29-2019 at 10:16.
LearninG is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-29-2019 , 12:05   Re: VIP Plugin help
Reply With Quote #9

Quote:
Originally Posted by edon1337 View Post
Why are you comparing an integer with a bitwise operator?
PHP Code:
if(g_team[id] & extra_items[i_team]) { 
This part seems fine what are you talking about basically it works like a == condition but I always recommend using a logic operators when comparin.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 08-29-2019 at 12:07.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
thEsp
BANNED
Join Date: Aug 2017
Old 08-29-2019 , 12:07   Re: VIP Plugin help
Reply With Quote #10

Quote:
Originally Posted by I AM NOOB View Post
As he said he just copied and pasted the codes from other plugin , you must change the code and make it suitable to use it
Oh, you two insulting each other again? You've gotta be kidding me. PM each other for insults boys.
thEsp 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 09:28.


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