INC HELP...
#1

Hey guys, I made include so when I use BGTURNON[playerid] = 1; it shows textdraws and when BGTURNON[playerid] = 0; it doesn't, but somehow it shws warnings and doesnt work for me could you help me...
pawn Код:
#if defined _BG_included
    #endinput
#endif
#define _BG_included
#pragma library BG

#include <a_samp>
new BGTURNON[MAX_PLAYERS];
new Text:TextdrawB0;
new Text:TextdrawB1;
new Text:TextdrawCredit;
forward OnBGInit(playerid);

public OnBGInit(playerid)
{
    if(BGTURNON[playerid] = 1)
    {
    TextdrawB0 = TextDrawCreate(651.000000, -1.000000, "1");
    TextDrawBackgroundColor(TextdrawB0, 255);
    TextDrawFont(TextdrawB0, 1);
    TextDrawLetterSize(TextdrawB0, 0.500000, 1.900000);
    TextDrawColor(TextdrawB0, -1);
    TextDrawSetOutline(TextdrawB0, 0);
    TextDrawSetProportional(TextdrawB0, 1);
    TextDrawSetShadow(TextdrawB0, 1);
    TextDrawUseBox(TextdrawB0, 1);
    TextDrawBoxColor(TextdrawB0, 255);
    TextDrawTextSize(TextdrawB0, -6.000000, -4.000000);

    TextdrawB1 = TextDrawCreate(651.000000, 430.000000, "2");
    TextDrawBackgroundColor(TextdrawB1, 255);
    TextDrawFont(TextdrawB1, 1);
    TextDrawLetterSize(TextdrawB1, 0.500000, 2.000000);
    TextDrawColor(TextdrawB1, -1);
    TextDrawSetOutline(TextdrawB1, 0);
    TextDrawSetProportional(TextdrawB1, 1);
    TextDrawSetShadow(TextdrawB1, 1);
    TextDrawUseBox(TextdrawB1, 1);
    TextDrawBoxColor(TextdrawB1, 255);
    TextDrawTextSize(TextdrawB1, -6.000000, -4.000000);

    TextdrawCredit = TextDrawCreate(490.000000, 434.000000, "Scripted By Vahktang");
    TextDrawBackgroundColor(TextdrawCredit, 255);
    TextDrawFont(TextdrawCredit, 1);
    TextDrawLetterSize(TextdrawCredit, 0.360000, 0.899999);
    TextDrawColor(TextdrawCredit, -1);
    TextDrawSetOutline(TextdrawCredit, 0);
    TextDrawSetProportional(TextdrawCredit, 1);
    TextDrawSetShadow(TextdrawCredit, 1);
    }
   
    if(BGTURNON[playerid] = 0)
    {
    TextDrawHideForPlayer(playerid,TextdrawB0);
    TextDrawHideForPlayer(playerid,TextdrawB0);
    TextDrawHideForPlayer(playerid,TextdrawB0);
    }
    return 1;
}
Reply
#2

COMMON guys help new pawner
Reply
#3

OH, COMMON guys help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)