[Pomoc]Intro

Započeo caupton, Septembar 29, 2011, 12:01:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Koji gamemod koristite?:Mod 0.
Koje vam se gre¹ke javljaju u skripti?:Ovako radio sam sa Vanilom intro i sada smo ga ubacili u mod i pokaze se intro pre logina i ja ukucam pass i posle toga nastavi intro ali kada zavrsi nece da se obrise textdraw da bude onako normalna slika da moze covek da nastavi radnju.
Dio skripte na kojim se javljaju gre¹ke?://

// OVO GORE DEFINIRAS
new TutTime;
new Tutorial[MAX_PLAYERS];
new Text:CS0;
new Text:CS1;
new Text:CS2;
new Text:T3;
new Text:T4;
new Text:T4a;
new Text:T5;
new Text:T6;
new Text:T7;
new Text:T8;
new Text:T11;
new Text:T12;
new Text:TU3;
new Text:TU4;
new Text:TU5;
new Text:TU6;
new Text:TU7;
new Text:TU8;
new Text:TU9;
new Text:TU10;
new Text:TU11;
new Text:TU12;
new Text:AL3;
new Text:AL4;
new Text:AL5;
new Text:AL6;
new Text:AL7;
new Text:AL8;
new Text:AL9;
new Text:AL10;
new Text:AL11;
new Text:AL12;
new Text:AL13;
new Text:AL14;
new Text:CSRL0;
new Text:CSRL1;
new Text:CSRL2;

// POD ONGAMEMODE INIT
CSRL0 = TextDrawCreate(643.000000, 3.000000, "~n~");
TextDrawBackgroundColor(CSRL0, 255);
TextDrawFont(CSRL0, 1);
TextDrawLetterSize(CSRL0, 0.500000, 49.499977);
TextDrawColor(CSRL0, -1);
TextDrawSetOutline(CSRL0, 0);
TextDrawSetProportional(CSRL0, 1);
TextDrawSetShadow(CSRL0, 1);
TextDrawUseBox(CSRL0, 1);
TextDrawBoxColor(CSRL0, 255);
TextDrawTextSize(CSRL0, -5.000000, -2.000000);

CSRL1 = TextDrawCreate(86.000000, 341.000000, "Farming v1.0");
TextDrawBackgroundColor(CSRL1, 255);
TextDrawFont(CSRL1, 3);
TextDrawLetterSize(CSRL1, 0.780000, 4.199999);
TextDrawColor(CSRL1, 16777215);
TextDrawSetOutline(CSRL1, 0);
TextDrawSetProportional(CSRL1, 1);
TextDrawSetShadow(CSRL1, 1);

CSRL2 = TextDrawCreate(388.000000, 372.000000, "by:vanilla");
TextDrawBackgroundColor(CSRL2, 255);
TextDrawFont(CSRL2, 3);
TextDrawLetterSize(CSRL2, 0.780000, 4.199999);
TextDrawColor(CSRL2, -65281);
TextDrawSetOutline(CSRL2, 0);
TextDrawSetProportional(CSRL2, 1);
TextDrawSetShadow(CSRL2, 1);

CS0 = TextDrawCreate(651.000000, -4.000000, ".");
TextDrawBackgroundColor(CS0, 255);
TextDrawFont(CS0, 1);
TextDrawLetterSize(CS0, 0.900000, 20.899999);
TextDrawColor(CS0, -1);
TextDrawSetOutline(CS0, 0);
TextDrawSetProportional(CS0, 1);
TextDrawSetShadow(CS0, 1);
TextDrawUseBox(CS0, 1);
TextDrawBoxColor(CS0, 255);
TextDrawTextSize(CS0, -4.000000, -1.000000);

CS1 = TextDrawCreate(651.000000, 146.000000, ".");
TextDrawBackgroundColor(CS1, 255);
TextDrawFont(CS1, 1);
TextDrawLetterSize(CS1, 0.900000, 20.899999);
TextDrawColor(CS1, -1);
TextDrawSetOutline(CS1, 0);
TextDrawSetProportional(CS1, 1);
TextDrawSetShadow(CS1, 1);
TextDrawUseBox(CS1, 1);
TextDrawBoxColor(CS1, 255);
TextDrawTextSize(CS1, -4.000000, -1.000000);

CS2 = TextDrawCreate(651.000000, 260.000000, ".");
TextDrawBackgroundColor(CS2, 255);
TextDrawFont(CS2, 1);
TextDrawLetterSize(CS2, 0.900000, 20.899999);
TextDrawColor(CS2, -1);
TextDrawSetOutline(CS2, 0);
TextDrawSetProportional(CS2, 1);
TextDrawSetShadow(CS2, 1);
TextDrawUseBox(CS2, 1);
TextDrawBoxColor(CS2, 255);
TextDrawTextSize(CS2, -4.000000, -1.000000);

T3 = TextDrawCreate(98.000000, 121.000000, "Welcome to Farming");
TextDrawBackgroundColor(T3, 255);
TextDrawFont(T3, 3);
TextDrawLetterSize(T3, 0.990000, 3.200000);
TextDrawColor(T3, -1);
TextDrawSetOutline(T3, 0);
TextDrawSetProportional(T3, 1);
TextDrawSetShadow(T3, 1);

T4 = TextDrawCreate(99.000000, 368.000000, "Nije sramota pasti,sramota je ne ustati se!");
TextDrawBackgroundColor(T4, 255);
TextDrawFont(T4, 2);
TextDrawLetterSize(T4, 0.430000, 2.200000);
TextDrawColor(T4, -16711681);
TextDrawSetOutline(T4, 0);
TextDrawSetProportional(T4, 1);
TextDrawSetShadow(T4, 1);

T4a = TextDrawCreate(79.000000, 368.000000, "It's not shame to fall,shame is to not stand up!");
TextDrawBackgroundColor(T4a, 255);
TextDrawFont(T4a, 2);
TextDrawLetterSize(T4a, 0.430000, 2.200000);
TextDrawColor(T4a, -16711681);
TextDrawSetOutline(T4a, 0);
TextDrawSetProportional(T4a, 1);
TextDrawSetShadow(T4a, 1);

T5 = TextDrawCreate(374.000000, 153.000000, "version : 1.0 Alpha");
TextDrawBackgroundColor(T5, 255);
TextDrawFont(T5, 3);
TextDrawLetterSize(T5, 0.520000, 2.799999);
TextDrawColor(T5, -16776961);
TextDrawSetOutline(T5, 0);
TextDrawSetProportional(T5, 1);
TextDrawSetShadow(T5, 1);

T6 = TextDrawCreate(137.000000, 197.000000, "Forum:www.cynix-trucking.com");
TextDrawBackgroundColor(T6, 255);
TextDrawFont(T6, 3);
TextDrawLetterSize(T6, 0.480000, 2.200001);
TextDrawColor(T6, -65281);
TextDrawSetOutline(T6, 0);
TextDrawSetProportional(T6, 1);
TextDrawSetShadow(T6, 1);

T7 = TextDrawCreate(401.000000, 388.000000, "Copyright 2011");
TextDrawBackgroundColor(T7, 255);
TextDrawFont(T7, 2);
TextDrawLetterSize(T7, 0.500000, 1.000000);
TextDrawColor(T7, -65281);
TextDrawSetOutline(T7, 0);
TextDrawSetProportional(T7, 1);
TextDrawSetShadow(T7, 1);

TU3 = TextDrawCreate(200.000000, 46.000000, "Farming");
TextDrawBackgroundColor(TU3, 255);
TextDrawFont(TU3, 3);
TextDrawLetterSize(TU3, 1.180000, 4.099999);
TextDrawColor(TU3, -16776961);
TextDrawSetOutline(TU3, 0);
TextDrawSetProportional(TU3, 1);
TextDrawSetShadow(TU3, 1);

TU4 = TextDrawCreate(248.000000, 77.000000, "TEAM");
TextDrawBackgroundColor(TU4, 255);
TextDrawFont(TU4, 3);
TextDrawLetterSize(TU4, 1.180000, 4.099999);
TextDrawColor(TU4, -65281);
TextDrawSetOutline(TU4, 0);
TextDrawSetProportional(TU4, 1);
TextDrawSetShadow(TU4, 1);

TU5 = TextDrawCreate(107.000000, 176.000000, "Scripter & Mapper :");
TextDrawBackgroundColor(TU5, 255);
TextDrawFont(TU5, 2);
TextDrawLetterSize(TU5, 0.270000, 2.299999);
TextDrawColor(TU5, 16777215);
TextDrawSetOutline(TU5, 0);
TextDrawSetProportional(TU5, 1);
TextDrawSetShadow(TU5, 1);

TU6 = TextDrawCreate(337.000000, 176.000000, "vanilla");
TextDrawBackgroundColor(TU6, 255);
TextDrawFont(TU6, 2);
TextDrawLetterSize(TU6, 0.270000, 2.299999);
TextDrawColor(TU6, -1);
TextDrawSetOutline(TU6, 0);
TextDrawSetProportional(TU6, 1);
TextDrawSetShadow(TU6, 1);

TU7 = TextDrawCreate(107.000000, 192.000000, "Glavni maper :");
TextDrawBackgroundColor(TU7, 255);
TextDrawFont(TU7, 2);
TextDrawLetterSize(TU7, 0.270000, 2.299999);
TextDrawColor(TU7, 16777215);
TextDrawSetOutline(TU7, 0);
TextDrawSetProportional(TU7, 1);
TextDrawSetShadow(TU7, 1);

TU8 = TextDrawCreate(196.000000, 192.000000, "vanilla");
TextDrawBackgroundColor(TU8, 255);
TextDrawFont(TU8, 2);
TextDrawLetterSize(TU8, 0.270000, 2.299999);
TextDrawColor(TU8, -1);
TextDrawSetOutline(TU8, 0);
TextDrawSetProportional(TU8, 1);
TextDrawSetShadow(TU8, 1);

TU9 = TextDrawCreate(107.000000, 208.000000, "Webmaster :");
TextDrawBackgroundColor(TU9, 255);
TextDrawFont(TU9, 2);
TextDrawLetterSize(TU9, 0.270000, 2.299999);
TextDrawColor(TU9, 16777215);
TextDrawSetOutline(TU9, 0);
TextDrawSetProportional(TU9, 1);
TextDrawSetShadow(TU9, 1);

TU10 = TextDrawCreate(217.000000, 208.000000, "vanilla");
TextDrawBackgroundColor(TU10, 255);
TextDrawFont(TU10, 2);
TextDrawLetterSize(TU10, 0.270000, 2.299999);
TextDrawColor(TU10, -1);
TextDrawSetOutline(TU10, 0);
TextDrawSetProportional(TU10, 1);
TextDrawSetShadow(TU10, 1);

TU11 = TextDrawCreate(107.000000, 224.000000, "Marketing i promocija :");
TextDrawBackgroundColor(TU11, 255);
TextDrawFont(TU11, 2);
TextDrawLetterSize(TU11, 0.270000, 2.299999);
TextDrawColor(TU11, 16777215);
TextDrawSetOutline(TU11, 0);
TextDrawSetProportional(TU11, 1);
TextDrawSetShadow(TU11, 1);

TU12 = TextDrawCreate(249.000000, 224.000000, "Vanilla");
TextDrawBackgroundColor(TU12, 255);
TextDrawFont(TU12, 2);
TextDrawLetterSize(TU12, 0.270000, 2.299999);
TextDrawColor(TU12, -1);
TextDrawSetOutline(TU12, 0);
TextDrawSetProportional(TU12, 1);
TextDrawSetShadow(TU12, 1);

AL3 = TextDrawCreate(200.000000, 46.000000, "Farming");
TextDrawBackgroundColor(AL3, 255);
TextDrawFont(AL3, 3);
TextDrawLetterSize(AL3, 1.180000, 4.099999);
TextDrawColor(AL3, -16776961);
TextDrawSetOutline(AL3, 0);
TextDrawSetProportional(AL3, 1);
TextDrawSetShadow(AL3, 1);

AL4 = TextDrawCreate(217.000000, 81.000000, "Admin Team");
TextDrawBackgroundColor(AL4, 255);
TextDrawFont(AL4, 3);
TextDrawLetterSize(AL4, 1.180000, 4.099999);
TextDrawColor(AL4, -65281);
TextDrawSetOutline(AL4, 0);
TextDrawSetProportional(AL4, 1);
TextDrawSetShadow(AL4, 1);

AL5 = TextDrawCreate(107.000000, 176.000000, "Owner :");
TextDrawBackgroundColor(AL5, 255);
TextDrawFont(AL5, 2);
TextDrawLetterSize(AL5, 0.270000, 2.299999);
TextDrawColor(AL5, 16777215);
TextDrawSetOutline(AL5, 0);
TextDrawSetProportional(AL5, 1);
TextDrawSetShadow(AL5, 1);

AL6 = TextDrawCreate(154.000000, 176.000000, "vanilla");
TextDrawBackgroundColor(AL6, 255);
TextDrawFont(AL6, 2);
TextDrawLetterSize(AL6, 0.270000, 2.299999);
TextDrawColor(AL6, -1);
TextDrawSetOutline(AL6, 0);
TextDrawSetProportional(AL6, 1);
TextDrawSetShadow(AL6, 1);

AL7 = TextDrawCreate(107.000000, 192.000000, "Head Admin :");
TextDrawBackgroundColor(AL7, 255);
TextDrawFont(AL7, 2);
TextDrawLetterSize(AL7, 0.270000, 2.299999);
TextDrawColor(AL7, 16777215);
TextDrawSetOutline(AL7, 0);
TextDrawSetProportional(AL7, 1);
TextDrawSetShadow(AL7, 1);

AL8 = TextDrawCreate(184.000000, 192.000000, "vanilla");
TextDrawBackgroundColor(AL8, 255);
TextDrawFont(AL8, 2);
TextDrawLetterSize(AL8, 0.270000, 2.299999);
TextDrawColor(AL8, -1);
TextDrawSetOutline(AL8, 0);
TextDrawSetProportional(AL8, 1);
TextDrawSetShadow(AL8, 1);

AL9 = TextDrawCreate(107.000000, 208.000000, "Admin Level 3 :");
TextDrawBackgroundColor(AL9, 255);
TextDrawFont(AL9, 2);
TextDrawLetterSize(AL9, 0.270000, 2.299999);
TextDrawColor(AL9, 16777215);
TextDrawSetOutline(AL9, 0);
TextDrawSetProportional(AL9, 1);
TextDrawSetShadow(AL9, 1);

AL10 = TextDrawCreate(199.000000, 208.000000, "vanilla");
TextDrawBackgroundColor(AL10, 255);
TextDrawFont(AL10, 2);
TextDrawLetterSize(AL10, 0.270000, 2.299999);
TextDrawColor(AL10, -1);
TextDrawSetOutline(AL10, 0);
TextDrawSetProportional(AL10, 1);
TextDrawSetShadow(AL10, 1);

AL11 = TextDrawCreate(107.000000, 224.000000, "Admin Level 2 :");
TextDrawBackgroundColor(AL11, 255);
TextDrawFont(AL11, 2);
TextDrawLetterSize(AL11, 0.270000, 2.299999);
TextDrawColor(AL11, 16777215);
TextDrawSetOutline(AL11, 0);
TextDrawSetProportional(AL11, 1);
TextDrawSetShadow(AL11, 1);

AL12 = TextDrawCreate(199.000000, 224.000000, "Vanilla");
TextDrawBackgroundColor(AL12, 255);
TextDrawFont(AL12, 2);
TextDrawLetterSize(AL12, 0.270000, 2.299999);
TextDrawColor(AL12, -1);
TextDrawSetOutline(AL12, 0);
TextDrawSetProportional(AL12, 1);
TextDrawSetShadow(AL12, 1);

AL13 = TextDrawCreate(107.000000, 240.000000, "Admin level 1 :");
TextDrawBackgroundColor(AL13, 255);
TextDrawFont(AL13, 2);
TextDrawLetterSize(AL13, 0.270000, 2.299999);
TextDrawColor(AL13, 16777215);
TextDrawSetOutline(AL13, 0);
TextDrawSetProportional(AL13, 1);
TextDrawSetShadow(AL13, 1);

AL14 = TextDrawCreate(197.000000, 240.000000, "Vanilla");
TextDrawBackgroundColor(AL14, 255);
TextDrawFont(AL14, 2);
TextDrawLetterSize(AL14, 0.270000, 2.299999);
TextDrawColor(AL14, -1);
TextDrawSetOutline(AL14, 0);
TextDrawSetProportional(AL14, 1);
TextDrawSetShadow(AL14, 1);

// OVO TI JE CALLBACK ZA TUT

public TUT(playerid)
{
    Tutorial[playerid] ++;
    if(Tutorial[playerid] >= 1)
    {
        if(Tutorial[playerid] == 2)
        {
            TextDrawShowForPlayer(playerid,CS0);
            TextDrawShowForPlayer(playerid,CS1);
            TextDrawShowForPlayer(playerid,CS2);
        }
        if(Tutorial[playerid]== 3)
        {
            TextDrawShowForPlayer(playerid,T3);
        }
        if(Tutorial[playerid]== 5)
        {
            TextDrawShowForPlayer(playerid,T5);
        }
        if(Tutorial[playerid]== 7)
        {
            TextDrawShowForPlayer(playerid,T6);
        }
        if(Tutorial[playerid]== 10)
        {
            TextDrawShowForPlayer(playerid,T4a);
            TextDrawShowForPlayer(playerid,T7);
        }
        if(Tutorial[playerid]== 13)
        {
            TextDrawHideForPlayer(playerid,T3);
            TextDrawHideForPlayer(playerid,T5);
            TextDrawHideForPlayer(playerid,T6);
            TextDrawHideForPlayer(playerid,T4);
            TextDrawHideForPlayer(playerid,T4a);
            TextDrawHideForPlayer(playerid,T7);
        }
        if(Tutorial[playerid]== 16)
        {
            TextDrawShowForPlayer(playerid,TU3);
            TextDrawShowForPlayer(playerid,TU4);
        }
        if(Tutorial[playerid]== 18)
        {
            TextDrawShowForPlayer(playerid,TU5);
            TextDrawShowForPlayer(playerid,TU6);
        }
        if(Tutorial[playerid]== 20)
        {
            TextDrawShowForPlayer(playerid,T7);
            TextDrawShowForPlayer(playerid,T8);
        }
        if(Tutorial[playerid]== 22)
        {
            TextDrawShowForPlayer(playerid,TU9);
            TextDrawShowForPlayer(playerid,TU10);
        }
        if(Tutorial[playerid]== 24)
        {
            TextDrawShowForPlayer(playerid,T11);
            TextDrawShowForPlayer(playerid,T12);
        }
        if(Tutorial[playerid]== 27)
        {
            TextDrawHideForPlayer(playerid,TU3);
            TextDrawHideForPlayer(playerid,TU4);
            TextDrawHideForPlayer(playerid,TU5);
            TextDrawHideForPlayer(playerid,TU6);
            TextDrawHideForPlayer(playerid,TU7);
            TextDrawHideForPlayer(playerid,TU8);
            TextDrawHideForPlayer(playerid,TU9);
            TextDrawHideForPlayer(playerid,TU10);
            TextDrawHideForPlayer(playerid,TU11);
            TextDrawHideForPlayer(playerid,TU12);
        }
        if(Tutorial[playerid]== 28)
        {
            TextDrawHideForPlayer(playerid,AL3);
            TextDrawHideForPlayer(playerid,AL4);
            TextDrawHideForPlayer(playerid,AL5);
            TextDrawHideForPlayer(playerid,AL6);
            TextDrawHideForPlayer(playerid,AL7);
            TextDrawHideForPlayer(playerid,AL8);
            TextDrawHideForPlayer(playerid,AL9);
            TextDrawHideForPlayer(playerid,AL10);
            TextDrawHideForPlayer(playerid,AL11);
            TextDrawHideForPlayer(playerid,AL12);
            TextDrawHideForPlayer(playerid,AL13);
            TextDrawHideForPlayer(playerid,AL14);
            TextDrawHideForPlayer(playerid,CS0);
            TextDrawHideForPlayer(playerid,CS1);
            TextDrawHideForPlayer(playerid,CS2);
            Tutorial[playerid] = 0;
            KillTimer(TutTimer);
    // Ovdje stavis svoj dialog za reegister/login iz onplayerconnect-a.
TextDrawShowForPlayer(playerid, CSRL0);
    TextDrawShowForPlayer(playerid, CSRL1);
    TextDrawShowForPlayer(playerid, CSRL2);
        }
    }
    return 1;
}

// POD ONPLAYERCONNECT
TutTimer = SetTimerEx("TUT",1000,true,"i",playerid);
   
Poslednja Izmena: Septembar 29, 2011, 12:06:45 POSLE PODNE od |BD|Sch0pEr