SA-MP Forums Archive
[Ajuda] Uma ajudinha aki galerinha - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Uma ajudinha aki galerinha (/showthread.php?tid=401482)



Uma ajudinha aki galerinha - killler - 23.12.2012

Estou com poblema no /laptop ta quasi tudo foncionando prefeita mente so um erro que quando vamos usar o DARCONT ele pede para dar o CONTRATOS e fica sempre nisso oque poderia ser ?

if(strcmp(cmd,"/laptop",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerOrg(playerid) == 8 || GetPlayerOrg(playerid) == 22)
{
if(ConnectedToPC[playerid] == 255)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк desligou seu laptop, e se desconectou de sua Agencia.");
ConnectedToPC[playerid] = 0;
return true;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк ligou seu laptop, e se conectou a sua Agкncia.");
SendClientMessage(playerid, COLOR_WHITE, "|___ *Agencia dos Assasinos* ___|");
SendClientMessage(playerid, COLOR_YELLOW2, "|");
SendClientMessage(playerid, COLOR_YELLOW2, "| * Noticias");
SendClientMessage(playerid, COLOR_YELLOW2, "| * Contratos");
SendClientMessage(playerid, COLOR_YELLOW2, "| * DarCont");
SendClientMessage(playerid, COLOR_YELLOW2, "| * Pedido");
SendClientMessage(playerid, COLOR_YELLOW2, "| * Membros");
SendClientMessage(playerid, COLOR_YELLOW2, "| * Sair");
SendClientMessage(playerid, COLOR_WHITE, "|______________|00:00|");
ConnectedToPC[playerid] = 255;
}


Re: Uma ajudinha aki galerinha - arakuta - 23.12.2012

Boa noite. Por favor ao postar um cуdigo pawn, poste o entre [*pawn][/pawn] (Remova os Astericos)

Exemplo

pawn Код:
new meucodigo = SendClientMessage(playerid,cor_ajuda,"Uso: [*pawn]Code[/*pawn]");
PS: O comando /laptop apenas liga/desliga-o (Simplismente trocando valores de varнaveis, veja mais aqui https://sampforum.blast.hk/showthread.php?tid=235924). Darcontrato, contratos e ETC, encontram-se em OnPlayerText dentro da possнvel condiзгo: if(ConnectedToPC[playerid] == 255)