Textdraws string, information showing
#1

I really don't understand textdraws very well, but I have a big problem and I can't find the solution for it.

News
Код HTML:
new Text:RodomValgi;
new PlayerText:HungerT[MAX_PLAYERS];
new HungerS[256];
new Text:RodomTroskuly;
new PlayerText:DrinkT[MAX_PLAYERS];
new DrinkS[256];
OnGameModeInit
Код HTML:
// hunger / thirsty
    RodomValgi = TextDrawCreate(495.000030, 103.288887, "hud:radar_burgershot");
    TextDrawLetterSize(RodomValgi, 0.000000, 0.000000);
    TextDrawTextSize(RodomValgi, 9.333342, 9.540744);
    TextDrawAlignment(RodomValgi, 1);
    TextDrawColor(RodomValgi, -1);
    TextDrawSetShadow(RodomValgi, 0);
    TextDrawSetOutline(RodomValgi, 0);
    TextDrawFont(RodomValgi, 4);
 
    RodomTroskuly = TextDrawCreate(582.999938, 102.044433, "hud:radar_diner");
    TextDrawLetterSize(RodomTroskuly, 0.000000, 0.000000);
    TextDrawTextSize(RodomTroskuly, 8.999999, 11.200007);
    TextDrawAlignment(RodomTroskuly, 1);
    TextDrawColor(RodomTroskuly, -1);
    TextDrawSetShadow(RodomTroskuly, 0);
    TextDrawSetOutline(RodomTroskuly, 0);
    TextDrawFont(RodomTroskuly, 4);
OnPlayerSpawn
Код HTML:
    TextDrawShowForPlayer(playerid,RodomValgi);
    TextDrawShowForPlayer(playerid,RodomTroskuly);
   
    HungerT[playerid] = CreatePlayerTextDraw(playerid,516.000244, 100.799980,HungerS);
    format(HungerS, sizeof(HungerS), "%d %%", playerDB[playerid][Hunger]);
    PlayerTextDrawLetterSize(playerid,HungerT[playerid], 0.225666, 1.496296);
    PlayerTextDrawAlignment(playerid,HungerT[playerid], 2);
    PlayerTextDrawColor(playerid,HungerT[playerid], -1);
    PlayerTextDrawSetShadow(playerid,HungerT[playerid], 0);
    PlayerTextDrawSetOutline(playerid,HungerT[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid,HungerT[playerid], 51);
    PlayerTextDrawFont(playerid,HungerT[playerid], 2);
    PlayerTextDrawSetProportional(playerid,HungerT[playerid], 1);
 
    format(DrinkS, sizeof(DrinkS), "%d %%", playerDB[playerid][Drink]);
    DrinkT[playerid] = CreatePlayerTextDraw(playerid,592.333801, 100.799995,DrinkS);
    PlayerTextDrawLetterSize(playerid, DrinkT[playerid], 0.211333, 1.608296);
    PlayerTextDrawAlignment(playerid, DrinkT[playerid], 1);
    PlayerTextDrawColor(playerid, DrinkT[playerid], -1);
    PlayerTextDrawSetShadow(playerid, DrinkT[playerid], 0);
    PlayerTextDrawSetOutline(playerid, DrinkT[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, DrinkT[playerid], 51);
    PlayerTextDrawFont(playerid, DrinkT[playerid], 2);
 
    PlayerTextDrawShow(playerid,HungerT[playerid]);
    PlayerTextDrawShow(playerid,DrinkT[playerid]);
Here's the problem: what's wrong, in player file there's hunger and drink is up to 100, but I see 0%, and on hungry nothing at all.
Reply


Messages In This Thread
Textdraws string, information showing - by bogushas - 31.01.2014, 18:36
Re: Textdraws string, information showing - by Immortal_LTU - 31.01.2014, 18:39
Re: Textdraws string, information showing - by MrTinder - 31.01.2014, 18:43
Re: Textdraws string, information showing - by bogushas - 31.01.2014, 18:43
Re: Textdraws string, information showing - by Hoborific - 31.01.2014, 18:44
Re: Textdraws string, information showing - by bogushas - 31.01.2014, 18:48
Re: Textdraws string, information showing - by KingSenpai - 27.06.2017, 14:32
Re: Textdraws string, information showing - by Whatname - 27.06.2017, 14:38
Re: Textdraws string, information showing - by Whatname - 27.06.2017, 14:43
Re: Textdraws string, information showing - by KingSenpai - 27.06.2017, 15:01

Forum Jump:


Users browsing this thread: 1 Guest(s)