stock GetStatu(playerid) //Is a stock { static str[24]; switch (PlayerInfo[playerid][pStatus]) //Is switch , he detecte if PlayerInfo[playerid][pStatus] == 0 or 1 { case 0: str = "Offline"; case 1: str = "Online"; } return str; }
GetStatu(playerid);