16.02.2012, 19:58
I'm not sure how to explain what I'm trying to do exactly, so therefore I'm gonna show first a "failed" example:
I currently got an enum, it contains ID etc...
Now is it possible to do something along those lines, as shown above?
Like not exactly writing ID in it but instead setting a string to ID?
What I'm trying to do is to create a system in-game to set the information of an enum by example: /setenum playerid identifier data
Is this possible?
And yes, the code above gives an error.
I currently got an enum, it contains ID etc...
pawn Код:
new string[20];
string="ID";
PlayerAccount[playerid][string]=1;
Like not exactly writing ID in it but instead setting a string to ID?
What I'm trying to do is to create a system in-game to set the information of an enum by example: /setenum playerid identifier data
Is this possible?
And yes, the code above gives an error.