Move-Object Problem, - FUCKING Disappears (+ReP)
#1

So here's my Code
PHP код:
    if(strcmp(cmd"/celldoor"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
            {
                if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 1)
                    {
                    if (!
PlayerToPoint(100playerid,322.44308.38999.15)) // FCPD HQ
                    
{
                        
SendClientMessage(playeridCOLOR_GRAD2"  You are not Inside the FCPD Station ");
                        return 
1;
                    }
                    
tmp strtok(cmdtextidx);
                    if(!
strlen(tmp))
                    {
                        
SendClientMessage(playeridCOLOR_WHITE"USAGE: /celldoor [Door Number]");
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"|_______ CELL CONTROL PANEL _______|");
                        
SendClientMessage(playeridCOLOR_GRAD1"| 1: INNER CELL DOOR     2: OUTER CELL DOOR");
                        return 
1;
                    }
                    new 
item3 strval(tmp);
                    if (
item3 == 1)
                    {
                           {
                            if(
cellopen1==0)
                              {
                              
SendClientMessage(playeridCOLOR_GREY,"You have OPENED the inner Cell door");
                              
MoveObject(celldoor114856,312.50000000,320.79998779,1000.00000000+51.0);
                              
cellopen1 1;
                              }
                              else
                              {
                              
SendClientMessage(playeridCOLOR_GREY,"You have CLOSED the inner Cell door");
                              
MoveObject(celldoor114856,312.50000000,320.79998779,1000.000000002.0); 
                              
cellopen1 0;
                              }
                            return 
1;
                        }
                    }
                    if (
item3 == 2)
                    {
                           {
                            if(
cellopen2==0)
                              {
                              
SendClientMessage(playeridCOLOR_GREY,"You have OPENED the Outer Cell Door");
                              
MoveObject(celldoor214856,311.10000610,320.70001221,1000.00000000+52.0);
                              
cellopen2 1;
                              }
                              else
                              {
                              
SendClientMessage(playeridCOLOR_GREY,"You have CLOSED the Outer Cell Door");
                              
MoveObject(celldoor214856,311.10000610,320.70001221,1000.000000002.0);
                              
cellopen2 0;
                              }
                            return 
1;
                        }
                    }
                } 
// Faction
            
// Connected
        
// First 
IF i do type the Command, Example /celldoor 1 once, it says i OPENED it but it never moved the Object but instead kinda deleted it, then when i type celldoor1 again, it ssays i CLOSED it but nothing happens..
This is in an Interior
Help Plox
Reply


Messages In This Thread
Move-Object Problem, - FUCKING Disappears (+ReP) - by Aira - 24.04.2012, 03:02
Re: Move-Object Problem, - FUCKING Disappears (+ReP) - by iRage - 24.04.2012, 03:04
Re: Move-Object Problem, - FUCKING Disappears (+ReP) - by Aira - 24.04.2012, 03:20
Re: Move-Object Problem, - FUCKING Disappears (+ReP) - by Aira - 24.04.2012, 04:17
Re: Move-Object Problem, - FUCKING Disappears (+ReP) - by RollTi - 24.04.2012, 04:20
Re: Move-Object Problem, - FUCKING Disappears (+ReP) - by Aira - 24.04.2012, 04:32

Forum Jump:


Users browsing this thread: 1 Guest(s)