02.03.2012, 13:54
hi guys so im try to make a textdraw that displays my servers website but when i try to compile it i get this. yes i know i suck at scripting lol
heres what im trying to do.
halp?
Code:
C:\Documents and Settings\Administrator\Desktop\gta sa server\gamemodes\FasDW.pwn(38) : error 017: undefined symbol "WebSite" C:\Documents and Settings\Administrator\Desktop\gta sa server\gamemodes\FasDW.pwn(44) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Code:
#include <a_samp>
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_WATER 0x33AAAA33
#if defined FILTERSCRIPT
new Text:WebSite;
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n-----------------------------------------");
print(" DDP DRIFT WORLD!");
print("-----------------------------------------\n");
}
#endif
public OnGameModeInit()
{
WebSite = TextDrawCreate(500.000000,109.000000,"~b~www.~y~dadriftpros.~r~tk");
TextDrawAlignment(WebSite,0);
TextDrawBackgroundColor(WebSite,0x000000ff);
TextDrawFont(WebSite,3);
TextDrawLetterSize(WebSite,0.299999,1.000000);
TextDrawColor(WebSite,0xffffffff);
TextDrawSetOutline(WebSite,1);
TextDrawSetProportional(WebSite,1);
TextDrawSetShadow(WebSite,1);
return 1;


