How i make...
#3

No errors but the textdraw doesn't appear
this is the code
Код:
#include <a_samp>

new Text:Textdraw0;

public OnFilterScriptInit()
{
	print("Textdraw file generated by");
	print("    Zamaroht's textdraw editor was loaded.");
	
	SetTimer("InCar",10000,1);

	Textdraw0 = TextDrawCreate(288.000000, 430.000000, "Apasa 2 pentru a repara masina si apasa CLICK pentru a adauga nitro!");
	TextDrawBackgroundColor(Textdraw0, 255);
	TextDrawFont(Textdraw0, 1);
	TextDrawLetterSize(Textdraw0, 0.280000, 1.000000);
	TextDrawColor(Textdraw0, 1502239743);
	TextDrawSetOutline(Textdraw0, 1);
	TextDrawSetProportional(Textdraw0, 1);

	return 1;
}

public OnFilterScriptExit()
{
	TextDrawHideForAll(Textdraw0);
	TextDrawDestroy(Textdraw0);
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
	{
		TextDrawShowForPlayer(playerid, Textdraw0);
	}
	else if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
	{
		TextDrawHideForPlayer(playerid, Textdraw0);
	}
	return 1;
}

forward InCar();
public InCar()
{
TextDrawDestroy(Text:Textdraw0);
return 1;
}
What's wrong ?
Reply


Messages In This Thread
How i make... - by Rock18 - 20.01.2011, 22:10
AW: How i make... - by Nero_3D - 20.01.2011, 22:13
Re: How i make... - by Rock18 - 20.01.2011, 22:18
Re: How i make... - by silvan - 20.01.2011, 22:27
Re: How i make... - by Rock18 - 20.01.2011, 22:31
AW: How i make... - by Nero_3D - 21.01.2011, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)