Raised This Month: $51 Target: $400
 12% 

Compile ERROR pls HELP!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
remix.allstarz
Member
Join Date: Dec 2013
Old 03-10-2023 , 15:24   Compile ERROR pls HELP!
Reply With Quote #1

PHP Code:
//// basebuilder54_2.sma
// C:\Users\marku\OneDrive\Desktop\scripting\basebuilder54_2.sma(65) : error 009: invalid array size (negative or zero)
// C:\Users\marku\OneDrive\Desktop\scripting\basebuilder54_2.sma(75) : warning 217: loose indentation
// C:\Users\marku\OneDrive\Desktop\scripting\basebuilder54_2.sma(75) : error 017: undefined symbol "ADMIN_PLAYER"
// C:\Users\marku\OneDrive\Desktop\scripting\basebuilder54_2.sma(75) : warning 215: expression has no effect
// C:\Users\marku\OneDrive\Desktop\scripting\basebuilder54_2.sma(75) : warning 215: expression has no effect
// C:\Users\marku\OneDrive\Desktop\scripting\basebuilder54_2.sma(75) : error 001: expected token: ";", but found ")"
// C:\Users\marku\OneDrive\Desktop\scripting\basebuilder54_2.sma(75) : error 029: invalid expression, assumed zero
// C:\Users\marku\OneDrive\Desktop\scripting\basebuilder54_2.sma(75) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 5 Errors. 

PHP Code:
public plugin_init()
{
    
register_clcmd("bb_lock""Usage: bb_lock [color code]"ADMIN_PLAYER"bb_lock_cmd"true);


This is the script
Attached Files
File Type: sma Get Plugin or Get Source (basebuilder54_2.sma - 45 views - 53.0 KB)

Last edited by remix.allstarz; 03-10-2023 at 15:24.
remix.allstarz is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 03-11-2023 , 19:07   Re: Compile ERROR pls HELP!
Reply With Quote #2

From Amxx API webpage
native register_clcmd(const client_cmd[], const function[], flags = -1, const info[] = "", FlagManager = -1, bool:info_ml = false);
in this case
register_clcmd("bb_lock", "bb_lock_cmd", ADMIN_PLAYER, "Usage: bb_lock [color code]", .info_ml=true);
__________________

Last edited by bigdaddy424; 03-11-2023 at 19:07. Reason: spacing
bigdaddy424 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-12-2023 , 21:09   Re: Compile ERROR pls HELP!
Reply With Quote #3

For learning basic plugin functionality, you should look at existing plugins to see how they do these sorts of things if either you don't understand the documentation or can't get it working.
__________________
fysiks is online now
Reply



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 14:21.


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