SA-MP Forums Archive
it covers the infobox - 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)
+--- Thread: it covers the infobox (/showthread.php?tid=603098)



it covers the infobox - James585 - 18.03.2016

Hey guys, I found the info box on it is all fine except for one thing: hide is .. So please fix the code Thank you


Re: it covers the infobox - Amads - 18.03.2016

We have no idea what info box you are talking about.


Re: it covers the infobox - AndySedeyn - 18.03.2016

I shall now proceed to fix your code... Abracadabra. Fixed!

On a serious note, we can't smell what your code looks like.


Re: it covers the infobox - KingHual - 18.03.2016

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
I shall now proceed to fixing your code... Abracadabra. Fixed!

On a serious note, we can't smell what your code looks like.
i can and it smells like shit


Re: it covers the infobox - AndySedeyn - 18.03.2016

Quote:
Originally Posted by KingHual
Посмотреть сообщение
i can and it smells like shit
That got me laughing more than it should have. Nice!


Re: it covers the infobox - James585 - 18.03.2016

I forgot


Re: it covers the infobox - James585 - 18.03.2016

Код:
    #include "a_samp"
    #define MAX_MESSAGES 10
    new Text:InfoBox2[100];

    forward IHide(playerid);
    forward OnInfoBoxGameModeInit();

    public OnInfoBoxGameModeInit(){

    for(new i;i<GetMaxPlayers();i++){
            InfoBox2[i] = TextDrawCreate(20.0, 120.0, "ERROR");
			TextDrawUseBox(InfoBox2[i], true);
			TextDrawBoxColor(InfoBox2[i], 0x00000080);
			TextDrawTextSize(InfoBox2[i], 150.0, 40.0);
    }
            return 1;
    }

    stock InfoBox(playerid,time,text[]){

    TextDrawHideForPlayer(playerid,InfoBox2[playerid]);
    TextDrawSetString(InfoBox2[playerid],text);
    TextDrawShowForPlayer(playerid,InfoBox2[playerid]);
    SetTimerEx("IHide",time*1000,false,"i",playerid);

    return true;
    }


    public IHide(playerid){
    TextDrawHideForPlayer(playerid,InfoBox2[playerid]);
    return true;
    }



Re: it covers the infobox - AndySedeyn - 18.03.2016

What exactly is covering the info box?


Re: it covers the infobox - James585 - 19.03.2016

It disappears, it will remain there until I give / q


Re: it covers the infobox - AndySedeyn - 19.03.2016

You should make that a player textdraw. Also, are you calling the function to hide it?