Raised This Month: $ Target: $400
 0% 

why isnt this command working?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bone
Member
Join Date: Mar 2005
Location: Under your bed
Old 04-19-2005 , 17:16   why isnt this command working?
Reply With Quote #1

I am adding lottery into my plug in and i made command to start lottery but its not working i want the jackpot to be what ever the admin wants so i put the following code.



Code:
register_concmd("amx_startlotto","cmd_startlotto",ADMIN_LEVEL_A); // start lottery

Code:
 new lotterymsg[256] = "A new lottery has started, pick up your tickets now!!"

Code:
 ////////////////////////////////////////////////////////////////////  // Start Lottery  //////////////////////////////////////////////////////////////////  public cmd_startlotto(id,level,cid) {     if(!cmd_access(id,level,cid,4)) {         return PLUGIN_HANDLED;     }     // start lotto     new arg1[256];         new hudstring[256];             read_argv(1,arg1,255);                 new jackpot = str_to_num(arg1)         format(hudstring,255,"%s",lotterymsg);                 return PLUGIN_HANDLED;  }

i went into game and put
amx_startlottery 300

but it kept saying amx_startlottery usage.. and not acutally starting lottery
anyone help?
__________________
the shirt covered her face, she screamed and clawed, so billy stomped on the bitch until he broke in her jaw.
Bone is offline
Send a message via MSN to Bone
 



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 09:53.


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