char in an multi-d array - how to set? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: char in an multi-d array - how to set? (
/showthread.php?tid=489621)
char in an multi-d array - how to set? -
Yashas - 23.01.2014
I have an enum
Код:
enum PlayerWeapons_t
{
.....
Weapons[MAX_PLAYER_WEAPONS char]
}
Код:
static PlayerWeapons[MAX_PLAYERS][PlayerWeapons_t];
How do I set an element in the array?
I tried this
PlayerWeapons[i][Weapons]{1} = 0;
^^Gives an error
^^ looks crap but how do I set a value?
Re: char in an multi-d array - how to set? -
Yashas - 24.01.2014
bump
Sorry!
Re: char in an multi-d array - how to set? -
Yashas - 26.01.2014
bump
Re: char in an multi-d array - how to set? -
Konstantinos - 26.01.2014
You cannot do this with enums.