[Ajuda] string
#5

PHP код:
new Text3D:LabelCasa[MAX_CASAS];
CarregarCasa(casas)
{
    new 
query[250];
    new 
dono[64];
    new 
PickupId;
    
    for(new 
0MAX_CASASc++)
     {
        
format(querysizeof(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(12731houseData[c][houseX], houseData[c][houseY], houseData[c][houseZ], -1, -1, -13.0);
        
DOF2_SetInt(query"PickupId"PickupId);
        
format(STRXsizeof(STRX), "{00FFFF}Dono(a): {FFFFFF}%s \n\n{00FFFF}CasaID:{FFFFFF}%d"houseData[c][Dono], c);
        
LabelCasa[c] = CreateDynamic3DTextLabel(STRX, -1houseData[c][houseX], houseData[c][houseY], houseData[c][houseZ], 30.0INVALID_PLAYER_IDINVALID_VEHICLE_ID1, -1, -1, -13.0);
    }
    return 
1;

tenta assim, eu uso DOF2_GetString(query, "Dono")
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
Reply


Messages In This Thread
string - by iWiNeR - 12.06.2018, 16:39
Re: string - by Minerva - 12.06.2018, 16:45
Re: string - by iWiNeR - 12.06.2018, 16:55
Re: string - by Ermanhaut - 12.06.2018, 17:04
Re: string - by AutoMatic2 - 13.06.2018, 00:09
Re: string - by iWiNeR - 13.06.2018, 16:45
Re: string - by Ermanhaut - 13.06.2018, 16:52
Re: string - by iWiNeR - 13.06.2018, 17:12
Re: string - by AutoMatic2 - 13.06.2018, 21:09
Re: string - by iWiNeR - 13.06.2018, 21:24

Forum Jump:


Users browsing this thread: 2 Guest(s)