Question about saving TextDraw IDs in PVars - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question about saving TextDraw IDs in PVars (
/showthread.php?tid=264206)
Question about saving TextDraw IDs in PVars -
Jochemd - 25.06.2011
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
Re: Question about saving TextDraw IDs in PVars -
[HiC]TheKiller - 25.06.2011
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];
Re: Question about saving TextDraw IDs in PVars -
Jochemd - 25.06.2011
That's just what I'm trying to avoid, using an enum for players :/