#1

Does anyone know how to fix this one

Код:
CMD:gate1(playerid, params[])
{
    if(PlayerInfo[playerid][Vip] >= 1)
    {
        if(IsPlayerInRangeOfPoint(playerid, 7, 2873.9949,-331.1090,2.2824)) // VIP Gate
        {
               if(!VIPGateStatus)
            {
                VIPGateStatus = 1;
                MoveDynamicObject(VIPGate, 2875.19995117, -330.50000000, -2.79999995, 3);
            }
                else
            {
                VIPGateStatus = 0;
                MoveDynamicObject(VIPGate, 2875.19995117, -330.50000000, 3.90000010, 3);
            }
        return 1;
        }
    }
    else return SendClientMessage(playerid,red,"ERROR: You need to be {FF0000}[V.I.P] {00FF40} 1 to use this command");
    return 1;
}
Loose Identition Line : 19063
Код:
 19062           }
 19063        return 1;
 19064        }
 19065   }
 19066   else return SendClientMessage(playerid,red,"ERROR: You need to be {FF0000}[V.I.P] {00FF40} 1 to use this command");
 19067    return 1;
 19068}
Reply
#2

delete that command, copy and paste this
https://pastebin.com/k189czXX
Reply
#3

Quote:
Originally Posted by KyNe
Посмотреть сообщение
Does anyone know how to fix this one

Код:
CMD:gate1(playerid, params[])
{
    if(PlayerInfo[playerid][Vip] >= 1)
    {
        if(IsPlayerInRangeOfPoint(playerid, 7, 2873.9949,-331.1090,2.2824)) // VIP Gate
        {
               if(!VIPGateStatus)
            {
                VIPGateStatus = 1;
                MoveDynamicObject(VIPGate, 2875.19995117, -330.50000000, -2.79999995, 3);
            }
                else
            {
                VIPGateStatus = 0;
                MoveDynamicObject(VIPGate, 2875.19995117, -330.50000000, 3.90000010, 3);
            }
        return 1;
        }
    }
    else return SendClientMessage(playerid,red,"ERROR: You need to be {FF0000}[V.I.P] {00FF40} 1 to use this command");
    return 1;
}
Loose Identition Line : 19063
Код:
 19062           }
 19063        return 1;
 19064        }
 19065   }
 19066   else return SendClientMessage(playerid,red,"ERROR: You need to be {FF0000}[V.I.P] {00FF40} 1 to use this command");
 19067    return 1;
 19068}
You shouldn't delete your thread no matter what even if you got the help you asked for,
PHP код:
CMD:gate1(playeridparams[])
{
    if(
PlayerInfo[playerid][Vip] >= 1)
    {
        if(
IsPlayerInRangeOfPoint(playerid72873.9949,-331.1090,2.2824)) // VIP Gate
        
{
            if(!
VIPGateStatus)
            {
                
VIPGateStatus 1;
                
MoveDynamicObject(VIPGate2875.19995117, -330.50000000, -2.799999953);
                }
               else
                {
                
VIPGateStatus 0;
                
MoveDynamicObject(VIPGate2875.19995117, -330.500000003.900000103);
                }
            return 
1;
            }
        }
    else return 
SendClientMessage(playerid,red,"ERROR: You need to be {FF0000}[V.I.P] {00FF40} 1 to use this command");
    return 
1;

Also visit this : Indentation Tutorial to know how to fix your code's indentation.
Reply
#4

Sorry Guys

Problem solved

Код:
CMD:vgate(playerid, params[])
{
    if(PlayerInfo[playerid][Vip] >= 1)
    {
        if(IsPlayerInRangeOfPoint(playerid, 7, 2873.9949,-331.1090,2.2824)) // VIP Gate
        {
               if(!VIPGateStatus)
            {
                VIPGateStatus = 1;
                MoveDynamicObject(VIPGate, 2875.19995117, -330.50000000, -2.79999995, 3);
                SendClientMessage(playerid,red,"[ GATE ]: {FF0000}are opened now");
            }
                else
            {
                VIPGateStatus = 0;
                MoveDynamicObject(VIPGate, 2875.19995117, -330.50000000, 3.90000010, 3);
                SendClientMessage(playerid,red,"[ GATE ]: {FF0000}closed now");

			    return 1;
			}
        }
    }
    else return SendClientMessage(playerid,red,"ERROR: You need to be {FF0000}[V.I.P] {00FF40} 1 to use this command");
    return 1;
}
i did my self,and special thanks to AlexMSK and Logic_
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)