09.02.2010, 17:12
Need Help With Resolving This FS
can someone help to fix this please`?
Problem : When i go to game then i dont see any textdraws there
can someone help to fix this please`?
Problem : When i go to game then i dont see any textdraws there
pawn Код:
#include <a_samp>
#include <Ranks>
forward rankshow(playerid);
new Text:Textdraw0;
new rank[128];
public OnFilterScriptInit()
{
print("Ranks Enabled Timer Set..");
SetTimer("rankshow", 1000, true);
return 1;
}
public rankshow(playerid)
{
new PR = PInfo[playerid][Rank];
format(rank, 128, "%d %s", PR, RankInfo[PR][RName]);
Textdraw0 = TextDrawCreate(261.000000, 432.000000,rank);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.549999, 1.700000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
}
}
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}