[Ajuda] alguem mim ajuda akie
#1

Boa Tarde,eu to em duvida aqui q eu converti um comando pra sscanf2 sу q o problema n й esse,ele nгo q funcionar tipo eu ligo nгo aparece pro player sу fica dando Ocupado... alguem mim mim ajudar aqui pq ta dando isso? http://pastebin.com/iBTKxCfQ
Reply
#2

Eu nгo compilei, eu apenas identei, vк se funciona

PHP код:
CMD:ligar(playerid,params[])
{
 new 
Numero;
 if(!
sscanf(params,"i",Numero))
 {
  if(
Player[playerid][MuteTime] == 0)
  {
   if(
Player[playerid][pPhone] != 0)
   {
    if(
nobangu[playerid] == false)
    {
     if(
PlayerTied[playerid] == 0)
     {
      
format(thestringsizeof(thestring), "%s tirou o celular do bolso."Player[playerid][pName]);
      
ProxDetector(30.0playeridthestringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      if(
Numero != Player[playerid][pPnumber])
      {
       if(
Mobile[playerid] == 255)
       {
        if(
Numero == 190)
        {
         
SendClientMessage(playeridCOLOR_WHITE"DICA: Vocк pode usar agora T para conversar no celular, digite (/des)ligar para desligar.");
         
SendClientMessage(playeridCOLOR_GOLD"EMERGКNCIA: Qual servico vocк deseja, Polнcia ou Ambulвncia");
         
SetPlayerSpecialAction(playeridSPECIAL_ACTION_USECELLPHONE);
         
Mobile[playerid] = 190;
         return 
1;
        }
        for(new 
i<= HighestIDi++)
        {
         if(
IsPlayerConnected(i))
         {
          if(
Player[i][pPnumber] == Numero && Numero != 0)
          {
           if(
Player[i][pPhone] > 0)
           {
            new 
giveid i;
            
Mobile[playerid] = giveid//caller connecting
            
if(IsPlayerConnected(giveid))
            {
             if(
PhoneOnline[giveid] > 0)
             {
              if(
Mobile[giveid] == 255)
              {
               
format(thestringsizeof(thestring), "Seu celular estб tocando, (/at)ender jogador: %s"Player[playerid][pName]);
               
SendClientMessage(giveidCOLOR_YELLOWthestring);
               
RingTone[giveid] = 10;
               
SetPlayerSpecialAction(playeridSPECIAL_ACTION_USECELLPHONE);
               
format(thestringsizeof(thestring), "%s estб ligando."Player[playerid][pName]);
               
SendClientMessage(playeridCOLOR_WHITE"DICA: Vocк pode usar agora T para conversar no celular, digite (/des)ligar para desligar.");
               
ProxDetector(30.0ithestringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
               
CellTime[playerid] = 1;
               return 
1;
              }
              else 
SendClientMessage(playeridCOLOR_YELLOW"O telefone estб ocupado.");
             }
             else 
SendClientMessage(playeridCOLOR_RED,"[ERRO] O telefone do jogador estб desligado.");
            }
           }
           else 
SendClientMessage(playeridCOLOR_GREY"  O jogador nгo tem um celular.");
          }
         }
        }
       }
       else 
SendClientMessage(playeridCOLOR_GREY"  Vocк jб estб em uma ligacгo");
      }
      else 
SendClientMessage(playeridCOLOR_GREY"  Ocupado...");
     }
     else 
SendClientMessage(playeridCOLOR_RED,"[ERRO] Vocк foi sequestrado, e estб incomunicбvel!");
    }
    else 
SendClientMessage(playeridCOLOR_RED"[ERRO] Vocк nгo pode usar este comando no bangu.");
   }
   else 
SendClientMessage(playeridCOLOR_RED"[ERRO] Vocк nгo tem um celular.");
  }
  else 
SendClientMessage(playeridCOLOR_RED"[ERRO] Vocк estб mutado");
 }
 else 
SendClientMessage(playerid,-1,">> USE: /Ligar [Numero] , Disque 190 pra Emergencias");
 return 
1;

Reply
#3

deu erro nessas ultimas linhas
Reply
#4

Pra mim nгo mostrou nenhum erro, qual erro estб mostrando?
Vocк incluiu as Includes sscanf, e zcmd?
Reply
#5

sim coloquei claro
Reply
#6

Testa ai: pastebin download link.

@Edit: cуdigo identado download aqui embaixo

|
|
V
Reply
#7

vlw pegou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)