TextDraw formatting problem with DoF2
#1

Hey guys,

Im using Double o' Files 2 for my account system. Whenever I want to access a persons saved variable, I do something like
Код:
PlayerInfo[playerid][pSomething]
It works perfectly but with my textdraw code, I am trying to make textdraws show couple of stats for player. Here's my code.

Код:
                        new textstring[50];
			format(textstring,sizeof(textstring),"%i",kills[i]);
			PlayerTextDrawSetString(i,currentkillsammount[i],textstring);
			format(textstring,sizeof(textstring),"%i",deaths[i]);
			PlayerTextDrawSetString(i,currentdeathsammount[i],textstring);
			format(textstring,sizeof(textstring),"%i",PlayerInfo[i][pKills]);
			PlayerTextDrawSetString(i,allkillsammount,textstring);
			format(textstring,sizeof(textstring),"%i",PlayerInfo[i][pDeaths]);
			PlayerTextDrawSetString(i,alldeathsammount,textstring);
			format(textstring,sizeof(textstring),"%i",PlayerInfo[i][pEscapes]);
			PlayerTextDrawSetString(i,timesevadedammount,textstring);
			PlayerTextDrawShow(i,currentkillsammount[i]);
			PlayerTextDrawShow(i,currentdeathsammount[i]);
			PlayerTextDrawShow(i,allkillsammount[i]);
			PlayerTextDrawShow(i,alldeathsammount[i]);
			PlayerTextDrawShow(i,timesevadedammount[i]);
It gives me 3 errors. Exactly on these lines.
Код:
format(textstring,sizeof(textstring),"%i",PlayerInfo[i][pKills]);
format(textstring,sizeof(textstring),"%i",PlayerInfo[i][pDeaths]);
format(textstring,sizeof(textstring),"%i",PlayerInfo[i][pEscapes]);
The other string formatings above them give no errors. Thats why I believe its problem with DoF2.
I got my PlayerTexts declared and specified. There's no problem with those.
Error message:
Код:
error 035: argument type mismatch (argument 2)
Thanks in advance.
Reply


Messages In This Thread
TextDraw formatting problem with DoF2 - by PDChaseOfficial - 17.12.2012, 15:55
Re: TextDraw formatting problem with DoF2 - by PDChaseOfficial - 17.12.2012, 16:08
Re: TextDraw formatting problem with DoF2 - by PDChaseOfficial - 17.12.2012, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)