22.12.2012, 00:13
I dont know what is wrong non of the textdraws are conflicting with one another just this one textdraw wont show a word what so ever
I tried all i could i have a total of 4 textdraw they all work perfectly This one just wont get rid of the black line I even created a new one in another location no where near the others and Still it shows this Line In the position where i put the textdraw is it because im using a timer
justtt a big black line Grrr
here code
Dont Matter what i do or how many posts i read and read the wiki Every setup the same.. Am i missing something this is driving me Insane... Here my Codes for the Main ones I like to work normaly
I tried all i could i have a total of 4 textdraw they all work perfectly This one just wont get rid of the black line I even created a new one in another location no where near the others and Still it shows this Line In the position where i put the textdraw is it because im using a timer
justtt a big black line Grrr
here code
Dont Matter what i do or how many posts i read and read the wiki Every setup the same.. Am i missing something this is driving me Insane... Here my Codes for the Main ones I like to work normaly
pawn Код:
new Text:GMXDRAW[MAX_PLAYERS] = Text:INVALID_TEXT_DRAW;
pawn Код:
public OnGameModeInit() AND on PlayerConnect
{
for(new i=0; i <MAX_PLAYERS; i++)
{
GMXDRAW[i] = TextDrawCreate(1.000000, 437.000000, " ");
TextDrawBackgroundColor(GMXDRAW[i], 255);
TextDrawFont(GMXDRAW[i], 1);
TextDrawLetterSize(GMXDRAW[i], 0.370000, 1.000000);
TextDrawColor(GMXDRAW[i], 65535);
TextDrawSetOutline(GMXDRAW[i], 0);
TextDrawSetProportional(GMXDRAW[i], 1);
TextDrawSetShadow(GMXDRAW[i], 1);
TextDrawUseBox(GMXDRAW[i], 1);
TextDrawBoxColor(GMXDRAW[i], 255);
TextDrawTextSize(GMXDRAW[i], 639.000000, 0.000000);
}
return 1;
}
pawn Код:
new GMXTIMER;
CMD:gmx(playerid, params[])
{
new gstring[128],reason[75],seconds;
if(PlayerOnline[playerid] != 0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 4)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid,aname,sizeof(aname));
if(sscanf(params, "ds",seconds,reason)) return SendClientMessage(playerid, WARNING, "/gmx (seconds) (reason)");
if(strval(params) < 1 || strval(params) > 1000000) return SendClientMessage(playerid, WARNING, "Allowed GMX Seconds 1-1000000");
for(new i = 0; i <MAX_PLAYERS; i++)
{
GMXTIMER = SetTimer("GameModeRestart",seconds*1000, true);
format(gstring,sizeof(gstring),"Admin %s(%d) Has Requested A Server Restart In %i Seconds Reason: %s",aname,playerid,GMXTIMER);
SaveWeapsAmmo(i);
PlayerUpdate(i);
GameGMX[i] = 1;
TextDrawSetString(GMXDRAW[i],gstring);
TextDrawShowForPlayer(i, GMXDRAW[i]);
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Do What?");
return 1;
}
}
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid)
{
TextDrawDestroy(GMXDRAW[playerid]);
return 1;
}