Problema con MySQL
#8

Quita ese define y usalo de la siguiente manera con condicional ternaria:
PHP код:
new PlayerLogged[MAX_PLAYERS] = -1;
public 
OnPlayerConnect(playerid)
{
     
PlayerLogged[playerid] = 1;
     return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
PlayerLogged[playerid] = 0;
    return 
1;

Modo de uso.
PHP код:
if(PlayerLogged[playerid]) print ("Si estб logueado");
else print (
"No estб logueado"); 
Edit: no ternaria. :v hiba hacer ternary pero lo hice al if
Reply


Messages In This Thread
Problema con MySQL - by jaxoR - 06.02.2015, 23:08
Respuesta: Problema con MySQL - by Zume - 06.02.2015, 23:11
Respuesta: Problema con MySQL - by jotajeda - 06.02.2015, 23:14
Re: Problema con MySQL - by jaxoR - 06.02.2015, 23:18
Respuesta: Re: Problema con MySQL - by jotajeda - 06.02.2015, 23:29
Re: Problema con MySQL - by jaxoR - 08.02.2015, 01:47
Respuesta: Problema con MySQL - by Zume - 08.02.2015, 01:51
Respuesta: Problema con MySQL - by jotajeda - 08.02.2015, 01:57

Forum Jump:


Users browsing this thread: 1 Guest(s)