08.02.2015, 01:57
Quita ese define y usalo de la siguiente manera con condicional ternaria:
Modo de uso.
Edit: no ternaria. :v hiba hacer ternary pero lo hice al if
PHP код:
new PlayerLogged[MAX_PLAYERS] = -1;
public OnPlayerConnect(playerid)
{
PlayerLogged[playerid] = 1;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
PlayerLogged[playerid] = 0;
return 1;
}
PHP код:
if(PlayerLogged[playerid]) print ("Si estб logueado");
else print ("No estб logueado");