Raised This Month: $ Target: $400
 0% 

enum problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 07-22-2013 , 08:57   enum problem
Reply With Quote #1

hi again, i need some help but this time with enum.

i have this code
PHP Code:
/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < sockets >

#define PLUGIN "New Plugin"
#define VERSION "1.0"

enum _:iServerData
{
    
SOCKET,
    
    
HOST25 ],
    
PORT,
    
    
FILENAME64 ],
    
HOSTNAME64 ],
    
GAMETYPE25 ],
    
MAPNAME25 ],
    
PLAYERS,
    
MAXPLAYERS,
    
BOTS,
    
    
PLAYERSNAMES33 ][ 32 ],
    
PLAYERSFRAGS33 ],
    
Float:PLAYERSTIME33 ],
    
PASSWORD],
    
    
PACKET,
    
TOTALPACKET
    
}

enum _:iRulesData
{
    
TIMELEFT20 ],
    
NEXTMAP25 ],
    
AIRACCELERATE],
    
GRAVITY],
    
MAXSPEED]
};
    
new 
g_ServersData10 ][ iServersData ];
new 
g_RulesDataiRulesData ];


public 
plugin_init( )
{
    
register_pluginPLUGINVERSION"Askhanar" );
    
    
// Add your code here...

and i get this when compiling

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Expected token: "}", but found "[" on line 24
Error: Invalid function or declaration on line 29
Error: Invalid function or declaration on line 32
Warning: Symbol is never used: "g_RulesData" on line 54
Warning: Symbol is never used: "g_ServersData" on line 54

4 Errors.
Could not locate output file D:\Counter Strike\SERVER\cstrike\addons\amxmodx\scripting\4.amx (compile failed).
and here are the lines:

24: PLAYERSNAMES[ 33 ][ 32 ],
32: }


i need it for g_ServersData[ iServer ][ iPlayerName ] ( iPlayername should be a string [33][32] )

thanks in advance.

Last edited by red_bull2oo6; 07-22-2013 at 08:58. Reason: forgot smth
red_bull2oo6 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 06:22.


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