Name does not appear
#1

(Sry for bad English )

Hi all,
I have a problem, and although the name does not appear,

Код:
//3DTextLabels
	for(new i=0;i<MAX_HOUSES;i++)
	{
	  if(INI_Open("Haus.cfg"))
	  {
		  new string[256];
			format(string, 32, "eX%d",i);
			HausInfo[i][eX] = INI_ReadFloat(string);
			format(string, 32, "eY%d",i);
			HausInfo[i][eY] = INI_ReadFloat(string);
			format(string, 32, "eZ%d",i);
			HausInfo[i][eZ] = INI_ReadFloat(string);
			format(string, 32, "Besitzer%d",i);
			HausInfo[i][Besitzer] = INI_ReadInt(string);
			format(string,sizeof(string),".:[Haus Information]:. \nLevel:5\nPreis:1000$\nInhaber:%d",HausInfo[i][Besitzer]);
			Create3DTextLabel(string,0x0099FFFF,HausInfo[i][eX], HausInfo[i][eY], HausInfo[i][eZ],40.0,0);
		}
	}
The problem is (Besitzer)
In the game displayed by Create3DTextLabel, only Inhaber (Besitzer) a 0

Does anybody know where is here the error?
Код:
format(string, 32, "Besitzer%d",i);
HausInfo[i][Besitzer] = INI_ReadInt(string);
format(string,sizeof(string),".:[Haus Information]:. \nLevel:5\nPreis:1000$\nInhaber:%d",HausInfo[i][Besitzer]);
@Haus.cfg
Besitzer0=Staat
Actually, there should be 'Staat' and are not '0 '

Reply
#2

try using %s instead of %d
Reply
#3

Not Work
Reply
#4

format(string, 32, "Besitzer%s",i);
HausInfo[i][Besitzer] = INI_ReadInt(string);
format(string,sizeof(string),".:[Haus Information]:. \nLevel:5\nPreis:1000$\nInhaber:%s",HausInfo[i][Besitzer]);
Reply
#5

Quote:
Originally Posted by Cameltoe
format(string, 32, "Besitzer%s",i);
HausInfo[i][Besitzer] = INI_ReadInt(string);
format(string,sizeof(string),".:[Haus Information]:. \nLevel:5\nPreis:1000$\nInhaber:%s",HausInfo[i][Besitzer]);
Thx for the answer, but it dont work
Reply
#6

can anyone help me?
Reply
#7


Код:
new playername[MAX_PLAYER_NAME];

GetPlayerName(i,playername,sizeof(playername);

format(string, 32, "Besitzer%s",playername);
Reply
#8

Hey again, look in this post:

http://forum.sa-mp.com/index.php?topic=143553.0

and i'm 100% sure you will find a fix
Reply
#9

I've discovered there is not really what
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)