SA-MP Forums Archive
Help, This TextDraw isnt showing up >:( - 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: Help, This TextDraw isnt showing up >:( (/showthread.php?tid=102829)



Help, This TextDraw isnt showing up >:( - Shadow_ - 17.10.2009

Код:
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!




Re: Help, This TextDraw isnt showing up >:( - Peter_Corneile - 17.10.2009

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

pawn Код:
new text:Blah;



Re: Help, This TextDraw isnt showing up >:( - Shadow_ - 17.10.2009

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


Re: Help, This TextDraw isnt showing up >:( - Shadow_ - 18.10.2009

Bump ^^


Re: Help, This TextDraw isnt showing up >:( - dice7 - 18.10.2009

Replace the spaces with '_'