Raised This Month: $ Target: $400
 0% 

[SOLVED] imessage.sma problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-25-2007 , 11:38   Re: imessage.sma problem
Reply With Quote #4

No. You're not getting it. This is not me providing a "more efficient solution to the more patternous method." This is the only way to do it.

The way the plugin works is by regularly sending a global message, based on a time interval set by a CVAR. It does not require a user to activate the command, and thus inputs no user "id". It will occur even if there are no users in the server.

What you did in your code was change the variable name from "i" to "id". Either one would work. Most coders use "i" in a loop because it is an increasing variable and not the same type of variable as your typical "id".

And yeah, you can use get_maxplayers() instead. I was just giving you an example.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
 



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 11:02.


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