03.05.2011, 15:21
Need help,I give textdraw to script and in game its not working but i dont have errors
this is my script!
But none errors but text draw in game is not working!
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