Big TextDraw problem! - Help
#1

well, i tryingfew day about this textdraws but i cant ersolve this..

my textdraws doesn't shows :/

ongamemodeinit:
Код:
intulaz = TextDrawCreate(208 ,450 , "Ukucajte /enter za uci u interijer");
TextDrawFont(intulaz , 1);
TextDrawLetterSize(intulaz , 0.5, 3.5);
TextDrawColor(intulaz , 0xff0000FF);
TextDrawSetOutline(intulaz , false);
TextDrawSetProportional(intulaz , true);
TextDrawSetShadow(intulaz , 1);

intizlaz2 = TextDrawCreate(208 ,450 , "Ukucajte /enter za uci u interijer");
TextDrawFont(intulaz , 1);
TextDrawLetterSize(intulaz , 0.5, 3.5);
TextDrawColor(intulaz , 0xff0000FF);
TextDrawSetOutline(intulaz , false);
TextDrawSetProportional(intulaz , true);
TextDrawSetShadow(intulaz , 1);
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == intV)   // If the player picks up the LSPD pickup that is previously defined
    {
        TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
    }
    if(pickupid == intB)   // If the player picks up the LSPD pickup that is previously defined
    {
        TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
    }
    if(pickupid == intVLA)   // If the player picks up the LSPD pickup that is previously defined
    {
        TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
    }
    if(pickupid == intGSF)   // If the player picks up the LSPD pickup that is previously defined
    {
        TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
    }
    if(pickupid == intSTAFF)   // If the player picks up the LSPD pickup that is previously defined
    {
        TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
    }
	if(pickupid == intIZLAZ)   // If the player picks up the LSPD pickup that is previously defined
    {
        TextDrawShowForPlayer(playerid,intizlaz2); // Show the textdraw defined "gDoor"
    }
	return 1;
}
Reply
#2

why my textdraws doesnt show, i thnik that my code is right, but nothing InGame
Reply
#3

use GameTextForPlayer instead of textdraw

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == intV)   // If the player picks up the LSPD pickup that is previously defined
    {
        GameTextForPlayer(playerid, "Use /enter to enter the interior.",5000, 5);
    }
about GameTextForPlayer try to check more in this link https://sampwiki.blast.hk/wiki/GameTextForPlayer
Reply
#4

thank you on help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)