Jump to content
  • 0

pomoc Error 017


Čmoud

Dotaz

Zdarec, můžete mi pomoct stímto errorem?

 

(135) : error 017: undefined symbol "ShowInfoBox"

 

řádek je zde

 

ShowInfoBox(playerid,"Můj text ", 4000);

 

Díky

Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0

pači sa ti

hore

new Text:InfoBox2[MAX_PLAYERS];
forward Skryt(playerid);

do OnGamemodeInit

for(new i;i<MAX_PLAYERS;i++)
{
InfoBox2[i] = TextDrawCreate(20.0, 120.0, "_");
TextDrawUseBox(InfoBox2[i], true);
TextDrawBoxColor(InfoBox2[i], 0x00000080);
TextDrawTextSize(InfoBox2[i], 187.000000,134.000000);
}

niekde mimo akýkoľvek public

 

stock InfoBox(playerid,time,text[]){ // myslím že by QWER
TextDrawHideForPlayer(playerid,InfoBox2[playerid]);
TextDrawSetString(InfoBox2[playerid],text);
TextDrawShowForPlayer(playerid,InfoBox2[playerid]);
SetTimerEx("Skryt",time*1000,false,"i",playerid);
return true;
}

tieš niekde mimo

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

a potom používaš takto:

InfoBox(playerid,time,text[]);
*playerid = komu zobrazíme
*time = na koľko mu to necháme zobrazene
*text = text ktory sa napíše

napr:

InfoBox(playerid,4,"Mleheheehe ");

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...