13.06.2018, 00:09
PHP код:
new Text3D:LabelCasa[MAX_CASAS];
CarregarCasa(casas)
{
new query[250];
new dono[64];
new PickupId;
for(new c = 0; c < MAX_CASAS; c++)
{
format(query, sizeof(query), "Casas/Casa%d.ini", c);
houseData[c][houseX] = DOF2_GetFloat(query, "PosX");
houseData[c][houseY] = DOF2_GetFloat(query, "PosY");
houseData[c][houseZ] = DOF2_GetFloat(query, "PosZ");
houseData[c][Dono] = DOF2_GetString(query, "Dono"));
houseData[c][PrecoH] = DOF2_GetInt(query, "Preco");
houseData[c][CasaID] = DOF2_GetInt(query, "CasaId");
PickupId = CreateDynamicPickup(1273, 1, houseData[c][houseX], houseData[c][houseY], houseData[c][houseZ], -1, -1, -1, 3.0);
DOF2_SetInt(query, "PickupId", PickupId);
format(STRX, sizeof(STRX), "{00FFFF}Dono(a): {FFFFFF}%s \n\n{00FFFF}CasaID:{FFFFFF}%d", houseData[c][Dono], c);
LabelCasa[c] = CreateDynamic3DTextLabel(STRX, -1, houseData[c][houseX], houseData[c][houseY], houseData[c][houseZ], 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 3.0);
}
return 1;
}
mas acho que assim tbm da acho que falto o LabelCasa
esse carregar casa se vc for colocar no OnGameModeInit a minha e outra funзгo que so carrega:
Pickup, mapicon й TextLabel o resto carrega sem erros e conflitos