TextDrawSetString Warring
#1

hello.
i get warrings fot this code

PHP код:
forward TimeHungDrinkUpdate(playerid);
public 
TimeHungDrinkUpdate(playerid)
{
    new 
string[128];
    
format(stringsizeof(string), "%d:Hungry Level"pHunglvl);
    
TextDrawSetString(Hunglvltxt,string);
    
//format(string, sizeof(string), "%d:Wyurvilis Done", pDrinklvl);
    //TextDrawSetString(Drinklvltxt, string);
    
PlayerTextDrawShow(playerid,Hunglvltxt);
    
PlayerTextDrawShow(playerid,Drinklvltxt);
    return 
1;

Код:
(15520) : warning 213: tag mismatch
line 15520

PHP код:
TextDrawSetString(Hunglvltxt,string); 
happy christmas

soryy for bad english
Reply
#2

How did you did you add the text

pawn Код:
new Text:Hunglvltxt;
?
Reply
#3

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
How did you did you add the text

pawn Код:
new Text:Hunglvltxt;
?
yes i add this text and this

PHP код:
Hunglvltxt CreatePlayerTextDraw(playerid,497.000000102.000000"%:Shimshilis Done");
    
PlayerTextDrawBackgroundColor(playerid,Hunglvltxt255);
    
PlayerTextDrawFont(playerid,Hunglvltxt1);
    
PlayerTextDrawLetterSize(playerid,Hunglvltxt0.3000001.000000);
    
PlayerTextDrawColor(playerid,Hunglvltxt16777215);
    
PlayerTextDrawSetOutline(playerid,Hunglvltxt0);
    
PlayerTextDrawSetProportional(playerid,Hunglvltxt1);
    
PlayerTextDrawSetShadow(playerid,Hunglvltxt1);
    
PlayerTextDrawSetSelectable(playerid,Hunglvltxt0); 
Reply
#4

maybe something wrong with pHunglvl or you did new PlayerText:Hunglvltxt;
if not the new then should be the pHunglvl
Reply
#5

There is a separate native for setting player textdraw strings.

PlayerTextDrawSetString
Reply
#6

Quote:
Originally Posted by Jay_
Посмотреть сообщение
There is a separate native for setting player textdraw strings.

PlayerTextDrawSetString
thank you Jay working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)