char arrays
#1

I read this tutorial: https://sampforum.blast.hk/showthread.php?tid=216730
And I didnt quite understand.
If I use this:
pawn Code:
static gTeam[MAX_PLAYERS char];
instead of:
pawn Code:
static gTeam[MAX_PLAYERS];
how can it save me memory?
+If I use char arrays,to what I change the []? also to {}
for ex:
pawn Code:
if(gTeam[playerid] == TEAM_Mafia) { SetPlayerColor(playerid,TEAM_Mafia_COLOR); }
    else if(gTeam[playerid] == TEAM_Dealers) { SetPlayerColor(playerid,TEAM_Dealers_COLOR); }
Thanks 4 helpers
Reply


Messages In This Thread
char arrays - by nuriel8833 - 24.02.2012, 12:39
Re: char arrays - by nuriel8833 - 25.02.2012, 08:25
Re: char arrays - by nuriel8833 - 28.02.2012, 17:27
Re: char arrays - by iPLEOMAX - 28.02.2012, 18:16
Re: char arrays - by nuriel8833 - 28.02.2012, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)