array problem
#4

If the first var in the enum is an ID, why is it a string?

Do this:

pawn Code:
enum arenaDB // name the enum
{
   HitRec, // add a variable to store weapon ID's (numerical values)
   HitRecName[MAX_PLAYER_NAME] // add a string var to store a player's name
};

new arenaInfo[MAX_PLAYERS][arenaDB]; // create the variable you can use the enum with

// so, you can use it by doing arenaInfo[playerid][HitRec] or arenaInfo[playerid][HitRecName]
Reply


Messages In This Thread
array problem - by EV007 - 09.04.2013, 16:16
Re: array problem - by M3mPHi$_S3 - 09.04.2013, 16:17
Re: array problem - by Riddick94 - 09.04.2013, 16:18
Re: array problem - by Scenario - 09.04.2013, 16:19
Re: array problem - by EV007 - 09.04.2013, 16:52
Re: array problem - by Riddick94 - 09.04.2013, 17:06
Re: array problem - by EV007 - 09.04.2013, 17:39
Re: array problem - by Riddick94 - 09.04.2013, 17:42
Re: array problem - by EV007 - 10.04.2013, 09:49

Forum Jump:


Users browsing this thread: 4 Guest(s)