string not loading
#1

title.

PHP код:
enum HouseInfo
{
    
HouseNumber,
    
hOwner[35],
    
hLocation[35],
    
Float:hX,
    
Float:hY,
    
Float:hZ,
}
new 
House[200][HouseInfo]; 
PHP код:
forward LoadHouses();
public 
LoadHouses()
{
    if(!
cache_num_rows()) return 1;
    new 
string[200];
    for(new 
i=0i<cache_get_row_count(); i++)
        {
            
House[i][HouseNumber] = cache_get_field_content_int(i,"hID");
            
cache_get_field_content(i,"hOwner",House[i][hOwner]);
            
cache_get_field_content(i,"hLocation",House[i][hLocation]);
            
House[i][hX] = cache_get_field_content_float(i,"hX");
            
House[i][hY] = cache_get_field_content_float(i,"hY");
            
House[i][hZ] = cache_get_field_content_float(i,"hZ");
            
format(string,sizeof(string),"(%i) %s's House - %s",House[i][HouseNumber],House[i][hOwner],House[i][hLocation]);
            
Create3DTextLabel(string,-1,House[i][hX],House[i][hY],House[i][hZ],20,0,0);
        }
    return 
1;

Reply


Messages In This Thread
string not loading - by justjamie - 31.08.2016, 10:01
Re: string not loading - by MrViolence101 - 31.08.2016, 10:11
Re: string not loading - by Konstantinos - 31.08.2016, 10:39
Re: string not loading - by justjamie - 31.08.2016, 11:29
Re: string not loading - by PrO.GameR - 31.08.2016, 11:38

Forum Jump:


Users browsing this thread: 2 Guest(s)