Player variable [MAX_PLAYERS char]
#1

Is it to use:

new pLogged[MAX_PLAYERS char];
or
new pLogged[MAX_PLAYERS];

I heard it's better pLogged.

and I have to use this brackets? { instead of [
Reply
#2

You'll save memory by using char variables.

it works like
pawn Код:
new bool: pLogged[MAX_PLAYERS char];

// You reset values onplayerconnect
pLogged{playerid} = false;
// Blahblah...
// Now you can check if player is logged

if (!pLogged{playerid})
{
    return SendClientMessage(playerid, -1, "You're not logged"), 0;
}
// etc...
Reply
#3

Alright thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)