Help with 2 black boxes on connect. -
Goldino - 17.01.2013
Hey guys, when you connect on many servers, this comes up:
(
http://i45.tinypic.com/2s67pmp.png)
It's the 2 black boxes! It comes up when you connect to the server on some servers! Is there a way to get it, and how do you get it?
Re: Help with 2 black boxes on connect. -
dr.lozer - 17.01.2013
did you add any textdraw Box ??
Re: Help with 2 black boxes on connect. -
park4bmx - 17.01.2013
i have something like this in one of my
leftover gamemodes
pawn Код:
//at the top
new Text:Textdraw55;
new Text:Textdraw56;
//then under "OnGameModeinit" or "OnFilterScriptInit"
Textdraw55 = TextDrawCreate(1.000000, -8.000000, "_");
TextDrawBackgroundColor(Textdraw55, 255);
TextDrawFont(Textdraw55, 1);
TextDrawLetterSize(Textdraw55, 0.500000, 14.699996);
TextDrawColor(Textdraw55, -1);
TextDrawSetOutline(Textdraw55, 0);
TextDrawSetProportional(Textdraw55, 1);
TextDrawSetShadow(Textdraw55, 1);
TextDrawUseBox(Textdraw55, 1);
TextDrawBoxColor(Textdraw55, 255);
TextDrawTextSize(Textdraw55, 640.000000, 0.000000);
Textdraw56 = TextDrawCreate(1.000000, 341.000000, "_");
TextDrawBackgroundColor(Textdraw56, 255);
TextDrawFont(Textdraw56, 1);
TextDrawLetterSize(Textdraw56, 0.500000, 12.699996);
TextDrawColor(Textdraw56, -1);
TextDrawSetOutline(Textdraw56, 0);
TextDrawSetProportional(Textdraw56, 1);
TextDrawSetShadow(Textdraw56, 1);
TextDrawUseBox(Textdraw56, 1);
TextDrawBoxColor(Textdraw56, 255);
TextDrawTextSize(Textdraw56, 640.000000, 0.000000);
//then show them with this
TextDrawShowForPlayer(playerid,Textdraw55);
TextDrawShowForPlayer(playerid,Textdraw56);
Re: Help with 2 black boxes on connect. -
azzerking - 17.01.2013
There called textdraws. They are used to make information more cleaner (In my opinion)
Re: Help with 2 black boxes on connect. -
Goldino - 17.01.2013
It comes up with this:
Код:
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(38) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(39) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(40) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(41) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(42) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(43) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(44) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(45) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(46) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(47) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(48) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(49) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(50) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(51) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(52) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(53) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(54) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(55) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(56) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(57) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(58) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(59) : error 017: undefined symbol "Textdraw56"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(82) : error 017: undefined symbol "Textdraw55"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\Roleplay test server\gamemodes\te.pwn(83) : error 017: undefined symbol "Textdraw56"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
24 Errors.
Re: Help with 2 black boxes on connect. -
park4bmx - 17.01.2013
wheres the ??
pawn Код:
new Text:Textdraw55;
new Text:Textdraw56;
Re: Help with 2 black boxes on connect. -
azzerking - 17.01.2013
Lets see the code you have put for this?
Re: Help with 2 black boxes on connect. -
Goldino - 17.01.2013
Heres all of the code
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
new Text:Textdraw55;
new Text:Textdraw56;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
Textdraw55 = TextDrawCreate(1.000000, -8.000000, "_");
TextDrawBackgroundColor(Textdraw55, 255);
TextDrawFont(Textdraw55, 1);
TextDrawLetterSize(Textdraw55, 0.500000, 14.699996);
TextDrawColor(Textdraw55, -1);
TextDrawSetOutline(Textdraw55, 0);
TextDrawSetProportional(Textdraw55, 1);
TextDrawSetShadow(Textdraw55, 1);
TextDrawUseBox(Textdraw55, 1);
TextDrawBoxColor(Textdraw55, 255);
TextDrawTextSize(Textdraw55, 640.000000, 0.000000);
Textdraw56 = TextDrawCreate(1.000000, 341.000000, "_");
TextDrawBackgroundColor(Textdraw56, 255);
TextDrawFont(Textdraw56, 1);
TextDrawLetterSize(Textdraw56, 0.500000, 12.699996);
TextDrawColor(Textdraw56, -1);
TextDrawSetOutline(Textdraw56, 0);
TextDrawSetProportional(Textdraw56, 1);
TextDrawSetShadow(Textdraw56, 1);
TextDrawUseBox(Textdraw56, 1);
TextDrawBoxColor(Textdraw56, 255);
TextDrawTextSize(Textdraw56, 640.000000, 0.000000);
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw55);
TextDrawShowForPlayer(playerid,Textdraw56);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Re: Help with 2 black boxes on connect. -
azzerking - 17.01.2013
Get rid of the
"#if defined FILTERSCRIPT"
"#else"
"#endif"
and it should compile
Re: Help with 2 black boxes on connect. -
Goldino - 17.01.2013
I have made it work now, but how do I stop the textdraw. I placed the textdraw to start on connect, now how do i stop it when someone spawns?