it covers the infobox
#1

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
Reply
#2

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

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

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

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
Reply
#5

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

I forgot
Reply
#7

Код:
    #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;
    }
Reply
#8

What exactly is covering the info box?
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)