Raised This Month: $ Target: $400
 0% 

how to get back the unknown string of two public ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lucky109
Senior Member
Join Date: Jan 2005
Old 06-25-2007 , 08:04   Re: how to get back the unknown string of two public ?
Reply With Quote #1

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\r2. %d",g_number[id])
   
nLen += formatszMenuBody[nLen], 255-nLen"^n\r3. %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: ??
       case 
1: ??
       case 
2: ??
       case 
3client_print(idprint_chat"exit test menu.")
   } 
   return 
PLUGIN_HANDLED

how can i get the numbers if player choose one case and if three string using g_number?
lucky109 is offline
Reply



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