15.11.2011, 05:16
Hey guys ..
I have a problem with my money textdraw..when i log in to the server i see black box where the money is located.. like this:
http://imageshack.us/photo/my-images/265/17254502.png/
Its happend when i deleted a speedo..
I think its about this fuction:
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
OnPlayerConnect(i);
}
Any way i did that:
new Text:Textdraw0;
Onplayerconnect:
TextDrawShowForPlayer(playerid, Textdraw0);
Onplayerdisconnect
TextDrawHideForPlayer(playerid, Textdraw0);
Onplayerspawn:
TextDrawShowForPlayer(playerid, Textdraw0);
OnGameModeInit
//Money
Textdraw0 = TextDrawCreate(498.000000,78.000000,"b");
TextDrawUseBox(Textdraw0,1);
TextDrawBoxColor(Textdraw0,0x000000ff);
TextDrawTextSize(Textdraw0,612.000000,0.000000);
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x00000000);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,2.299999);
TextDrawColor(Textdraw0,0x00000000);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
help !!
I have a problem with my money textdraw..when i log in to the server i see black box where the money is located.. like this:
http://imageshack.us/photo/my-images/265/17254502.png/
Its happend when i deleted a speedo..
I think its about this fuction:
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
OnPlayerConnect(i);
}
Any way i did that:
new Text:Textdraw0;
Onplayerconnect:
TextDrawShowForPlayer(playerid, Textdraw0);
Onplayerdisconnect
TextDrawHideForPlayer(playerid, Textdraw0);
Onplayerspawn:
TextDrawShowForPlayer(playerid, Textdraw0);
OnGameModeInit
//Money
Textdraw0 = TextDrawCreate(498.000000,78.000000,"b");
TextDrawUseBox(Textdraw0,1);
TextDrawBoxColor(Textdraw0,0x000000ff);
TextDrawTextSize(Textdraw0,612.000000,0.000000);
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x00000000);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.000000,2.299999);
TextDrawColor(Textdraw0,0x00000000);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
help !!