Help, This TextDraw isnt showing up >:(
#1

Код:
new Text:URL[MAX_PLAYERS];
new Text:URL2[MAX_PLAYERS];

forward TextDrawCreator(playerid);
forward TextDrawDestroyer(playerid);
forward TextDrawShower(playerid);
forward TextDrawHider(playerid);

public TextDrawCreator(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	  	//--- URL
		URL[playerid] = TextDrawCreate(465.000000,11.000000,"http://menace  society.fr.nf/");
		URL2[playerid] = TextDrawCreate(544.000000,4.000000,"2");
		TextDrawAlignment(URL[playerid],0);
		TextDrawAlignment(URL2[playerid],0);
		TextDrawBackgroundColor(URL[playerid],0x000000ff);
		TextDrawBackgroundColor(URL2[playerid],0x000000ff);
		TextDrawFont(URL[playerid],3);
		TextDrawLetterSize(URL[playerid],0.3,0.8);
		TextDrawFont(URL2[playerid],3);
		TextDrawLetterSize(URL2[playerid],1.000000,2.100000);
		TextDrawColor(URL[playerid],0xffffffff);
		TextDrawColor(URL2[playerid],0xff0000cc);
		TextDrawSetOutline(URL[playerid],1);
		TextDrawSetOutline(URL2[playerid],1);
		TextDrawSetProportional(URL[playerid],1);
		TextDrawSetProportional(URL2[playerid],1);
		TextDrawSetShadow(URL[playerid],1);
		TextDrawSetShadow(URL2[playerid],1);
		SetTimerEx("TextDrawShower",3000,0,"i",playerid);
	}
	return 1;
}

public TextDrawDestroyer(playerid)
{
	TextDrawDestroy(Text:URL[playerid]);
	TextDrawDestroy(Text:URL2[playerid]);
	return 1;
}

public TextDrawShower(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	  TextDrawShowForPlayer(playerid,Text:URL[playerid]);
		TextDrawShowForPlayer(playerid,Text:URL2[playerid]);
	}
	return 1;
}

public TextDrawHider(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	  TextDrawHideForPlayer(playerid,Text:URL[playerid]);
		TextDrawHideForPlayer(playerid,Text:URL2[playerid]);
	}
	return 1;
}

public OnGameModeExit()
{
	for(new i = 0; i <= MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i) == 1)
		{
			TextDrawHider(i);
  		TextDrawDestroyer(i);
		}
	}
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
   TextDrawHider(playerid);
   return 1;
}
And basically that wont show up in my server, everything compiles fine.. but then nothing shows up


ShadowMcFartPants


^^ Thats not my code!

Reply
#2

Are the arays really needed ? I mean like
pawn Код:
new Text:Blah[MAX_PLAYERS];
Cant it be like this ?

pawn Код:
new text:Blah;
Reply
#3

Seif, That didn't work because then the Textdraw isnt defined...

and it just gives me errors for all the URL saying its not defined :S
Reply
#4

Bump ^^
Reply
#5

Replace the spaces with '_'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)