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
Author Message
lucky109
Senior Member
Join Date: Jan 2005
Old 06-25-2007 , 00:51   how to get back the unknown string of two public ?
Reply With Quote #1

Code:
#include <amxmodx>

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

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

   new nLen = format( szMenuBody, 255, "\yTest Menu:^n" )
   nLen += format( szMenuBody[nLen], 255-nLen, "^n\r1. %d",random(256))
   nLen += format( szMenuBody[nLen], 255-nLen, "^n^n\w2. Exit" )

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

   show_menu( id, keys, szMenuBody, -1 )
   return PLUGIN_CONTINUE
}

public MenuCommand( id, key )
{
   switch( key )
   {
       case 0: how can i get back the %d numbers?
       case 1: client_print(id, print_chat, "exit test menu.")
   } 
   return PLUGIN_HANDLED
}
lucky109 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