11.09.2018, 21:44
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 ?
else if(strcmp(x_job, "model", true) == 0)
{
new value = floatround(ofloat, floatround_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(string, sizeof(string), "Gate Model assigned to %d", GateInfo[gateid][gModel]);
if(IsValidDynamicObject(GateInfo[gateid][gGATE])) DestroyDynamicObject(GateInfo[gateid][gGATE]);
CreateGate(gateid);
SendClientMessageEx(playerid, COLOR_WHITE, string);
SaveGates();
format(string, sizeof(string), "%s has edited GateID %d's Model to %d.", GetPlayerNameEx(playerid), gateid, value);
Log("logs/gedit.log", string);
}