Raised This Month: $ Target: $400
 0% 

how to get back the unknown string of two public ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-25-2007 , 04:35   Re: how to get back the unknown string of two public ?
Reply With Quote #2

PHP Code:
#include <amxmodx>

#define PLUGIN "G-HK Private Messaging"
#define VERSION "1.0"
#define AUTHOR "Yin"

new g_number[33]

public 
plugin_init() {
    
register_clcmd"test","testmenu", -1"test menu" )
    
register_menucmd(register_menuid("\yTest Menu:"), 1023"MenuCommand" )
}

public 
testmenu(id)
{
   new 
szMenuBody[256]
   new 
keys

   g_number
[id] =  random(256)

   new 
nLen formatszMenuBody255"\yTest Menu:^n" )
   
nLen += formatszMenuBody[nLen], 255-nLen"^n\r1. %d",g_number[id])
   
nLen += formatszMenuBody[nLen], 255-nLen"^n^n\w2. Exit" )

   
keys = (1<<0|1<<1)

   
show_menuidkeysszMenuBody, -)
   return 
PLUGIN_CONTINUE
}

public 
MenuCommandidkey )
{
   switch( 
key )
   {
       case 
0//g_number[id]
       
case 1client_print(idprint_chat"exit test menu.")
   } 
   return 
PLUGIN_HANDLED

__________________
Impossible is Nothing
Sylwester 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 21:30.


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