Raised This Month: $ Target: $400
 0% 

why isnt this command working?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-19-2005 , 21:32  
Reply With Quote #2

Code:
if(!cmd_access(id,level,cid,4)) {

The last parameter is the amount of arguments that the command takes, including the command itself. In your case, the 4 should be a 2.

The first argument is amx_startlotto and the second argument is 300 in your example. Therefore by using read_argv(0,...) you could grab the command name if you wanted (just useless information).
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 09:53.


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