Gate models invisible
#1

Hello, if I try to place a gate it starts off with a ? and you can change the model if I do that the gate is invisible and I have to idea where even to start looking anyone any idea ?
Reply
#2

Anyone ?
Reply
#3

Provide the code.
Reply
#4

Quote:
Originally Posted by UFF
Посмотреть сообщение
Provide the code.
Thats the thing what code ? where it changes the model ?
Reply
#5

PHP код:
else if(strcmp(x_job"model"true) == 0)
        {
            new 
value floatround(ofloatfloatround_round);
            if(
value == 0)
            {
                
GateInfo[gateid][gPosX] = 0.0;
                
GateInfo[gateid][gPosY] = 0.0;
                
GateInfo[gateid][gPosZ] = 0.0;
                
GateInfo[gateid][gRotX] = 0.0;
                
GateInfo[gateid][gRotY] = 0.0;
                
GateInfo[gateid][gRotZ] = 0.0;
                
GateInfo[gateid][gPosXM] = 0.0;
                
GateInfo[gateid][gPosYM] = 0.0;
                
GateInfo[gateid][gPosZM] = 0.0;
                
GateInfo[gateid][gRotXM] = 0.0;
                
GateInfo[gateid][gRotYM] = 0.0;
                
GateInfo[gateid][gRotZM] = 0.0;
                
GateInfo[gateid][gVW] = 0;
                
GateInfo[gateid][gInt] = 0;
            }
            
GateInfo[gateid][gModel] = value;
            
format(stringsizeof(string), "Gate Model assigned to %d"GateInfo[gateid][gModel]);
            if(
IsValidDynamicObject(GateInfo[gateid][gGATE])) DestroyDynamicObject(GateInfo[gateid][gGATE]);
            
CreateGate(gateid);
            
SendClientMessageEx(playeridCOLOR_WHITEstring);
            
SaveGates();
            
format(stringsizeof(string), "%s has edited GateID %d's Model to %d."GetPlayerNameEx(playerid), gateidvalue);
            
Log("logs/gedit.log"string);
        } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)