Raised This Month: $ Target: $400
 0% 

ERROR: symbol already defined "get_players"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
beretta
Junior Member
Join Date: May 2005
Old 06-06-2005 , 21:16   ERROR: symbol already defined "get_players"
Reply With Quote #1

I'm confused on why when i try to compile this i get an error saying "symbol already defined 'get_players'".
Code:
new Players[32] new playerCount get_players(Players, playerCount, "b")

im new to amx so be nice to me
beretta is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 06-06-2005 , 21:24  
Reply With Quote #2

you must be trying to do that outside of any other function, you cannot run another function from the global space or it thinks you are trying to define it, it has to be inside of a function.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-06-2005 , 22:18  
Reply With Quote #3

Here's a basic plugin with get_players():

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Count the Dead","0.1","Jawn Doh")     register_clcmd("say /ctd","count_the_dead") } public count_the_dead(id) {     new players[32],num     get_players(players,num,"b")     client_print(id,print_chat,"There are %i dead players",num)     return PLUGIN_HANDLED }

See if you can figure it out. ;)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
beretta
Junior Member
Join Date: May 2005
Old 06-07-2005 , 19:39  
Reply With Quote #4

hey thanks to both of u for the help
beretta is offline
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 16:45.


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