Question about saving TextDraw IDs in PVars
#1

Hello,

I am not sure if this is possible. I've tried several things, but without success.

pawn Код:
SetPVarInt(playerid,"InfoBox",TextDrawCreate(490.000000, 130.000000, " "));
    TextDrawBackgroundColor(Text:GetPVarInt(playerid,"InfoBox"), 255);
    TextDrawFont(Text:GetPVarInt(playerid,"InfoBox"), 1);
    TextDrawLetterSize(Text:GetPVarInt(playerid,"InfoBox"), 0.259998, 1.199999);
    TextDrawColor(Text:GetPVarInt(playerid,"InfoBox"), -1);
    TextDrawSetOutline(Text:GetPVarInt(playerid,"InfoBox"), 1);
    TextDrawSetProportional(Text:GetPVarInt(playerid,"InfoBox"), 1);
    TextDrawUseBox(Text:GetPVarInt(playerid,"InfoBox"), 1);
    TextDrawBoxColor(Text:GetPVarInt(playerid,"InfoBox"), 270659379);
    TextDrawTextSize(Text:GetPVarInt(playerid,"InfoBox"), 630.000000, 0.000000);
It always gives the Tag Mismatch error on SetPVarInt. I don't see any place where I could place 'Text:' there, since it doesn't help. Is it actually possible?

Hope so!
Jochem
Reply
#2

You cant actually use TextDraws in SetPvarInt's because a textdraw ID isn't a integer. I don't actually think you can do it with SetPVarString either. You may have to just use

pawn Код:
new Text:Textdraw[MAX_PLAYERS];
Reply
#3

That's just what I'm trying to avoid, using an enum for players :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)