Raised This Month: $ Target: $400
 0% 

random_num error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
timmiesgubbe
Member
Join Date: Oct 2012
Location: Sweden
Old 09-16-2013 , 02:25   random_num error
Reply With Quote #1

How i putt
Code:
new Num = random_num(10, 30)
in global
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <ColorChat> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "Timmie" Line 11 :new Num = random_num(10, 30) //Error: Must be a constant expression; assumed zero on line 11 public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public Number1(id) {     ColorChat(id, GREY, "Random Num: %i", Num); } public Number2(id) {     ColorChat(id, GREY, "Random Num: %i", Num); } public Number3(id) {     ColorChat(id, GREY, "Random Num: %i", Num); }

Last edited by timmiesgubbe; 09-16-2013 at 02:31.
timmiesgubbe 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 18:53.


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