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

According map , print origins.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 02-15-2011 , 10:09   According map , print origins.
Reply With Quote #1

I made a simple plugin , check it

Code:
#include <amxmodx> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" enum _:INFO {     MAP[20],     Float:ORIGINS[3] } new const szInfo[2][INFO] = {     { "de_dust2", { 0.15, 0.10, 0.90 } },     { "de_inferno", { 0.20, 0.18, 0.24 } } } public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_srvcmd("HEY", "clcmd_hey")     } public clcmd_hey(id) {     static map[20]     get_mapname(map, charsmax(map))         for( new i = 0 ; i < 2 ; i++)     {         if( equal( map, szInfo[i] ))         {                 server_print("-- %s %f --", szInfo[i][MAP], szInfo[i][ORIGINS])         }     }         server_print("calledsir") }

When i type HEY , in server-console, prints this.

Code:
HEY
-- de_dust2 0.150000 --
calledsir
The same with 'de_inferno'

Code:
HEY
-- de_inferno 0.200000 --
calledsir
When i want to print ' 0.15, 0.10, 0.90 '.

Can any help me with this problem ?.

And , when i put the map de_inferno , doesn't print , only calledsir :S
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.

Last edited by lucas_7_94; 02-15-2011 at 10:16.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-15-2011 , 11:18   Re: According map , print origins.
Reply With Quote #2

ORIGINS is an array, not a float.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 02-15-2011 , 11:41   Re: According map , print origins.
Reply With Quote #3

Yes , i solved that, thanks exolent
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
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 15:22.


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