Textdraw help
#1

Need help,I give textdraw to script and in game its not working but i dont have errors
this is my script!

pawn Код:
//          Copyright by @SpiderWalk
// ---------      |----------     -----------
// |              |          |    |          |
// |              |          |    |          |
// |    ----|     |----------     |          |
// |        |     |     \          ----------
// ----------     |      \        |

#include <a_samp>
#include <ladmin>
#pragma unused ret_memcpy
#pragma tabsize 0

#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define Version "V0.1"
#define DIALOGID "3534"
//  COLORS!!!
#define COL_EASY           "{FFF1AF}"
#define COL_WHITE          "{FFFFFF}"
#define COL_BLACK          "{0E0101}"
#define COL_GREY           "{C3C3C3}"
#define COL_GREEN          "{6EF83C}"
#define COL_RED            "{F81414}"
#define COL_YELLOW         "{F3FF02}"
#define COL_ORANGE         "{FFAF00}"
#define COL_LIME           "{B7FF00}"
#define COL_CYAN           "{00FFEE}"
#define COL_LIGHTBLUE      "{00C0FF}"
#define COL_BLUE           "{0049FF}"
#define COL_MAGENTA        "{F300FF}"
#define COL_VIOLET         "{B700FF}"
#define COL_PINK           "{FF00EA}"
#define COL_MARONE         "{A90202}"
#define COL_CMD            "{B8FF02}"
#define COL_PARAM          "{3FCD02}"
#define COL_SERVER         "{AFE7FF}"
#define COL_VALUE          "{A3E4FF}"
#define COL_RULE           "{F9E8B7}"
#define COL_RULE2          "{FBDF89}"
#define COL_RWHITE         "{FFFFFF}"
#define COL_LGREEN         "{C9FFAB}"
#define COL_LRED           "{FFA1A1}"
#define COL_LRED2          "{C77D87}"


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print("|                                   |");
    print("|      GENERAL ROCKET PARTY         |");
    print("|                                   |");
    print("-------------------------------------\n");
}

#endif
new NavyBase;
new Text:GRP;

public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("STUNT/FREEROAM/DM");
    AddPlayerClass(285,1322.1700,352.1799,19.5547,251.8506,0,0,0,0,0,0); // spanw1
    AddPlayerClass(287,1352.1089,348.5364,20.4969,76.2704,0,0,0,0,0,0); // spawn2
    AddPlayerClass(286,1311.0826,330.0768,19.9141,203.6521,0,0,0,0,0,0); // spawn3
    AddPlayerClass(274,1324.2913,286.1208,20.0452,333.3289,0,0,0,0,0,0); // spawn4
    AddPlayerClass(112,1331.3750,220.0563,19.5547,341.1291,0,0,0,0,0,0); // spawn6
    AddPlayerClass(147,2840.6880,1291.1045,11.3906,89.3444,0,0,0,0,0,0); // spawnpos 7
    AddPlayerClass(117,2839.7432,1285.6504,11.3906,90.1510,0,0,0,0,0,0); // spawn pos
    AddPlayerClass(120,2839.9619,1295.9490,11.3906,90.1510,0,0,0,0,0,0); // spawnpos9
    AddPlayerClass(125,2848.6396,1294.0634,11.3906,173.6916,0,0,0,0,0,0); // spawnpos10
    AddPlayerClass(127,2848.5994,1286.7906,11.3906,349.5046,0,0,0,0,0,0); // spawnpos11
    NavyBase = GangZoneCreate(1097.72, 0, 1529.802, 537.1823);
    GRP = TextDrawCreate(306, 456, "General Rocket Party");
    TextDrawFont(GRP , 2);
    TextDrawLetterSize(GRP , 0.7, 4.9);
    TextDrawColor(GRP , 0x628EC6FF);
    TextDrawSetOutline(GRP , 0);
    TextDrawSetProportional(GRP , 1);
    TextDrawSetShadow(GRP , 1);
    //box1
    //box2
    //box3
But none errors but text draw in game is not working!
Reply
#2

Did you make it show?

TextDrawShowForPlayer <<-- Click me
Reply
#3

use when onplayerconnect TextDrawShowForPlayer(playerid, Textdraw[playerid]);
Reply
#4

This new one but its not working
pawn Код:
//          Copyright by @SpiderWalk
// ---------      |----------     -----------
// |              |          |    |          |
// |              |          |    |          |
// |    ----|     |----------     |          |
// |        |     |     \          ----------
// ----------     |      \        |
//We are the future
//We are the new
//We are the best

#include <a_samp>
#include <ladmin>
#pragma unused ret_memcpy
#pragma tabsize 0

#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define Version "V0.1"
#define DIALOGID "3534"
//  COLORS!!!
#define COL_EASY           "{FFF1AF}"
#define COL_WHITE          "{FFFFFF}"
#define COL_BLACK          "{0E0101}"
#define COL_GREY           "{C3C3C3}"
#define COL_GREEN          "{6EF83C}"
#define COL_RED            "{F81414}"
#define COL_YELLOW         "{F3FF02}"
#define COL_ORANGE         "{FFAF00}"
#define COL_LIME           "{B7FF00}"
#define COL_CYAN           "{00FFEE}"
#define COL_LIGHTBLUE      "{00C0FF}"
#define COL_BLUE           "{0049FF}"
#define COL_MAGENTA        "{F300FF}"
#define COL_VIOLET         "{B700FF}"
#define COL_PINK           "{FF00EA}"
#define COL_MARONE         "{A90202}"
#define COL_CMD            "{B8FF02}"
#define COL_PARAM          "{3FCD02}"
#define COL_SERVER         "{AFE7FF}"
#define COL_VALUE          "{A3E4FF}"
#define COL_RULE           "{F9E8B7}"
#define COL_RULE2          "{FBDF89}"
#define COL_RWHITE         "{FFFFFF}"
#define COL_LGREEN         "{C9FFAB}"
#define COL_LRED           "{FFA1A1}"
#define COL_LRED2          "{C77D87}"
#define LIGHTBLUE 0x33CCFFAA
#define LIGHTRED 0xFF6347AA
#define WHITE 0xFFFFFFAA

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print("|                                   |");
    print("|      GENERAL ROCKET PARTY         |");
    print("|                                   |");
    print("-------------------------------------\n");
}

#endif
new NavyBase;
new Train;
new Text:Textdraw0;
new Text:Textdraw1;

public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("STUNT/FREEROAM/DM");
    AddPlayerClass(285,1322.1700,352.1799,19.5547,251.8506,0,0,0,0,0,0); // spanw1
    AddPlayerClass(287,1352.1089,348.5364,20.4969,76.2704,0,0,0,0,0,0); // spawn2
    AddPlayerClass(286,1311.0826,330.0768,19.9141,203.6521,0,0,0,0,0,0); // spawn3
    AddPlayerClass(274,1324.2913,286.1208,20.0452,333.3289,0,0,0,0,0,0); // spawn4
    AddPlayerClass(112,1331.3750,220.0563,19.5547,341.1291,0,0,0,0,0,0); // spawn6
    AddPlayerClass(147,2840.6880,1291.1045,11.3906,89.3444,0,0,0,0,0,0); // spawnpos 7
    AddPlayerClass(117,2839.7432,1285.6504,11.3906,90.1510,0,0,0,0,0,0); // spawn pos
    AddPlayerClass(120,2839.9619,1295.9490,11.3906,90.1510,0,0,0,0,0,0); // spawnpos9
    AddPlayerClass(125,2848.6396,1294.0634,11.3906,173.6916,0,0,0,0,0,0); // spawnpos10
    AddPlayerClass(127,2848.5994,1286.7906,11.3906,349.5046,0,0,0,0,0,0); // spawnpos11
    NavyBase = GangZoneCreate(1097.72, 0, 1529.802, 537.1823);
    SendRconCommand("mapname LS/SF/LV");
    Train = GangZoneCreate(2732.623, 1167.788, 2861.08, 1448.057);
    //textdraw i think it will working?! :D
    Textdraw0 = TextDrawCreate(175.000000, 424.000000, "General Rocket Party");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 2);
    TextDrawLetterSize(Textdraw0, 0.500000, 1.700000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 0);
    Textdraw1 = TextDrawCreate(502.000000, 10.000000, "G.R.P");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 3);
    TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
    TextDrawColor(Textdraw1, -16776961);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetShadow(Textdraw1, 1);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1312.7732,332.0873,25.6946);
    SetPlayerCameraPos(playerid, 1310.6516,339.8167,25.6946);
    SetPlayerCameraLookAt(playerid, 1311.9548,331.6893,25.6946);
    return 1;
}

public OnPlayerConnect(playerid)
{
    new string[120], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"{C3C3C3}%s has joined the server. Welcome!",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX,"{AFE7FF}Server Rules", "{AFE7FF}Rule 1:No Hacking\nRule 2:No Imature Behavioure\nRule 3:No Racism\nRule 4:Respect all players\nRule 5:Do not be abusive to Admins or KICK/BAN\nRule 6:Have Fun!\nDecline our rules you will be KICKED!", "Accept", "Decline");
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~r~Welcome to GRP~n~General Rocket Party",2000,5);
    TextDrawShowForAll(Textdraw0);
    TextDrawShowForAll(Textdraw1);
    return 1;
Reply
#5

HElp me with this text draw??
Reply
#6

HELP
Reply
#7

Please help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)