Raised This Month: $ Target: $400
 0% 

Random const?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 10-16-2006 , 21:25   Random const?
Reply With Quote #1

I'm trying to get random consts to work
Code:
#include <amxmodx> plugin_init() {          register_plugin("Testing","Yeah","Blahblah") } // I set up my array new const name[4][] = {     "Name1",     "Name2",     "Name3",     "Name4" } public my_func(id) {       client_print(id,print_chat,"Random name: %s",name[random(0,3)]) }
But i keep getting this compile error:
'Error: Number of arguments does not match definition on line 142'

Oh and as for a side note, there's alot of different ways to set up a menu, what would be the most 'optimized' way?
Drak is offline
Send a message via MSN to Drak
 



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 04:51.


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