[Ajuda] Dar nome a org
#10

Quote:
Originally Posted by oOFotherOo
Посмотреть сообщение
Ok aquн esta fango amigo:

pawn Код:
static GetPlayerOrg(playerid)
{
    static string:String[128];
    switch(PlayerInfo[playerid][pOrg])
    {
         case 0: String = "Civil";
         case 1: String = "Ballas";
         case 2: String = "Grove";
         case 3: String = "Mendigo"; // Adicionar mais o caso de acrescentar mais organizaзхes.
         default: String = "Nenhum";
    }
    return 1;
}


// Ejemplo de uso:
public OnPlayerConnect(playerid)
{
      static string:String[128];
      format(String, sizeof(String), "Organizaзгo: %s", GetPlayerOrg(playerid));
      SendClientMessage(playerid, -1, String);
      return 1;
}
Saludos.
Gigante, coloque no /info e nгo funcionou, fui fazer o teste como vocк me mostrou em cima, quando logo no server ao invйs de mostrar o nome da org mostra o caminho da pasta e o arquivo no qual fica salvo.

Fica assim: Oraganizaзгo: Players/Luiz.ini
Reply


Messages In This Thread
Dar nome a org - by .ThePro - 08.01.2013, 20:42
Re: Dar nome a org - by negodrama - 08.01.2013, 20:50
Re: Dar nome a org - by .ThePro - 08.01.2013, 20:54
Re: Dar nome a org - by negodrama - 08.01.2013, 20:57
Respuesta: Dar nome a org - by oOFotherOo - 08.01.2013, 20:59
Re: Dar nome a org - by .ThePro - 08.01.2013, 21:01
Re: Respuesta: Dar nome a org - by .ThePro - 08.01.2013, 21:04
Respuesta: Dar nome a org - by oOFotherOo - 08.01.2013, 21:06
Re: Respuesta: Dar nome a org - by VenoN - 08.01.2013, 21:11
Re: Respuesta: Dar nome a org - by .ThePro - 08.01.2013, 21:23

Forum Jump:


Users browsing this thread: 1 Guest(s)