Raised This Month: $ Target: $400
 0% 

Why are variables not getting filled?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 09-26-2006 , 18:27   Re: Why are variables not getting filled?
Reply With Quote #6

Quote:
Originally Posted by Emp` View Post
Code:
 public my_loop()
 {
	new players[MAX_PLAYERS], id
	get_players(players, pnum)

	for ( new i = 0; i < pnum; i++ )
	{
		id = players[i]

		//you would want to put your stuff here
	}
 }
That code displayed these errors on compile...
Quote:
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(120) : error 017: undefined symbol "MAX_PLAYERS"
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(120) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(120 -- 121) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(121) : error 017: undefined symbol "players"
/home/groups/amxmodx/tmp3/phpbh7iN8.sma(121) : fatal error 107: too many error messages on one line
@Mystic Death
Setting 0 to id gave me errors too.
hlstriker 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 04:49.


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