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.
#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;
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
|
new Text:welcomeText;
public OnGameModeInit()
{
welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");// the textdraw creating thing is ALWAYS done on GAMEMODEINIT!! remember.
return 1;
}
//to create the textdraw you can use OnPlayerConnect or a independent command such as /textdrawshow etc..
public OnPlayerConnect(playerid)
{
//This is used to show the player the textdraw when they connect.
TextDrawShowForPlayer(playerid,welcomeText);
}
It seems like you are doing something wrong..
pawn Code:
https://sampwiki.blast.hk/wiki/TextDrawCreate -FalconX |
#if defined FILTERSCRIPT
pawn Code:
|