Is that possible to use each byte as a variable in enum? (+REP)
#1

when I do the next thing it's giving me errors, there is any possible way to do something similar?

PHP код:
enum info
{
    
slot[35]
}
new 
playerinfo[MAX_PLAYERS][info];
public 
OnPlayerConnect(playerid)
{
    
playerinfo[playerid][slot[0]] = 12;
    
playerinfo[playerid][slot[1]] = 69;

well I can make "slot1, slot2, slot3" but that sucks and I won't be able to do the next thing:
PHP код:
for(new i35i++)
{
    
playerinfo[playerid][slot[i]] = 17;

Reply


Messages In This Thread
Is that possible to use each byte as a variable in enum? (+REP) - by Lirbo - 03.01.2018, 13:05
Re: Is that possible to use each byte as a variable in enum? (+REP) - by Injury - 03.01.2018, 13:29
Re: Is that possible to use each byte as a variable in enum? (+REP) - by Lirbo - 03.01.2018, 13:51

Forum Jump:


Users browsing this thread: 1 Guest(s)