SA-MP Forums Archive
Gate models invisible - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gate models invisible (/showthread.php?tid=658768)



Gate models invisible - IndependentGaming - 11.09.2018

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 ?


Re: Gate models invisible - IndependentGaming - 12.09.2018

Anyone ?


Re: Gate models invisible - UFF - 12.09.2018

Provide the code.


Re: Gate models invisible - IndependentGaming - 12.09.2018

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


Re: Gate models invisible - IndependentGaming - 12.09.2018

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);
        }