Raised This Month: $ Target: $400
 0% 

getvault_exists - else write to vault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jeppelykke
Member
Join Date: May 2005
Location: Hjørring, Denmark
Old 05-31-2006 , 12:19   getvault_exists - else write to vault
Reply With Quote #1

Hey Hey ;)

Code:
public plugin_init() {     register_plugin(GH_PLUGIN, GH_VERSION, GH_AUTHOR)     register_clcmd("amx_ghmenu","gh_checkmenu",ADMIN_ALL, "- Shows Gamehotel Menu")         /*** NEED HELP WITH THIS PART *****/     new gh_vaultcheck[64]     vaultdata_exists("gh_servermode",gh_vaultcheck[64])     if(!equali(gh_vaultcheck,"TRUE"))     {           set_vaultdata("gh_servermode","FFA")        }          /*** NEED HELP WITH THIS PART *****/ }

How do i write that part of the code, where the script checks if vault have the vault data of: gh_servermode and if it don't it sets the vault to FFA. And if it do have the Vault data it just don't do anything and happly moves along
__________________
Best Regards
Jeppe Lykke, Denmark
jeppelykke is offline
 



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 16:27.


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