17.12.2012, 15:55
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
It works perfectly but with my textdraw code, I am trying to make textdraws show couple of stats for player. Here's my code.
It gives me 3 errors. Exactly on these lines.
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:
Thanks in advance.
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]
Код:
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]);
Код:
format(textstring,sizeof(textstring),"%i",PlayerInfo[i][pKills]); format(textstring,sizeof(textstring),"%i",PlayerInfo[i][pDeaths]); format(textstring,sizeof(textstring),"%i",PlayerInfo[i][pEscapes]);
I got my PlayerTexts declared and specified. There's no problem with those.
Error message:
Код:
error 035: argument type mismatch (argument 2)