[AJUDA] Comando /veh :S
#1

Quando digito o comando nao aparece (USE: /veh [IDCARRO] [COR1] [COR2]) e se eu digito o comando certinho ele nao funciona:S ajuda plz e urgente
PHP код:
    if (strcmp("/veh"cmdtexttrue10) == 0)
    {
        if(
IsPlayerConnected(playerid))
         {
            if (
PlayerInfo[playerid][pAdmin] < 5000)
            {
                
SendClientMessage(playeridBRANCO"   Vocк nгo esta autorizado a usar este comando!");
                   return 
1;
            }
            if(
Trabalhando[playerid] < && PlayerInfo[playerid][pAdmin] != 5000)
            {
                
SendClientMessage(playeridBRANCO"Vocк nгo estб trabalhando! (/trabalhar)");
                return 
1;
            }
              
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
               {
                
SendClientMessage(playeridBRANCO"USE: /veh [IDCARRO] [COR1] [COR2]");
                return 
1;
               }
               new 
car;
               
car strval(tmp);
               if(
car 400 || car 611) { SendClientMessage(playeridCOLOR_GREY"   Modelo Do Carro Tem Que Ser Entre 411 e 600 !"); return 1; }
               
tmp strtok(cmdtextidx);
               if(!
strlen(tmp))
               {
                
SendClientMessage(playeridBRANCO"USE: /veh [IDCARRO] [COR1] [COR2]");
                return 
1;
               }
               new 
COLOR1;
               
COLOR1 strval(tmp);
               if(
COLOR1 || COLOR1 126) { SendClientMessage(playeridCOLOR_GREY"   Nъmero Da Cor tem que ser entre 0 e 126 !"); return 1; }
               
tmp strtok(cmdtextidx);
               if(!
strlen(tmp))
               {
                
SendClientMessage(playeridBRANCO"USE: /veh [IDCARRO] [COR1] [COR2]");
                return 
1;
               }
               new 
COLOR2;
               
COLOR2 strval(tmp);
               if(
COLOR2 || COLOR2 126) { SendClientMessage(playeridCOLOR_GREY"   Nъmero Da Cor tem que ser entre 0 e 126 !"); return 1; }
               new 
Float:X,Float:Y,Float:Z;
               
GetPlayerPos(playeridX,Y,Z);
               new 
carid CreateVehicle(carX,Y,Z0.0COLOR1COLOR260000);
               
CreatedCars[CreatedCar] = carid;
               
CreatedCar ++;
               
format(stringsizeof(string), "   Veiculo %d Criado."carid);
               
SendClientMessage(playeridCOLOR_GREYstring);
          }
          return 
1;
     } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)