[Help] Textdraw undefined but i did
#1

Hello! i have a little problem with my GM that i'm going to release.

PHP код:
TextDrawShowForPlayer(playeridTextDraw23); 
PHP код:
  TextDrawHideForPlayer(playeridTextDraw22);
  
TextDrawHideForPlayer(playeridTextDraw23); 
PHP код:
C:\Users\yan\Desktop\DM for SAMP forums\gamemodes\DM.pwn(158) : error 017undefined symbol "TextDraw22"
C:\Users\yan\Desktop\DM for SAMP forums\gamemodes\DM.pwn(159) : error 017undefined symbol "TextDraw23"
C:\Users\yan\Desktop\DM for SAMP forums\gamemodes\DM.pwn(175) : error 017undefined symbol "TextDraw23"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
3 Errors

Reply
#2

pawn Код:
new Text:TextDraw22;
new Text:TextDraw23;
Reply
#3

Did you define them in top of your GM ?
pawn Код:
new TextDraw22;
new TextDraw23;
Reply
#4

yes i did.
Reply
#5

Did you created the textdraw? Something like that at OnGameModeInit:

pawn Код:
Textdraw0 = TextDrawCreate(45.600044, 425.599945, "test");
TextDrawLetterSize(Textdraw0, 0.600401, 1.906133);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, -2147483393);
TextDrawSetShadow(Textdraw0, 2);
TextDrawSetOutline(Textdraw0, 0);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
Reply
#6

I did, lol i already have done this before.
Reply
#7

Check that you didn't declare below the line "#if defined FILTERSCRIPT". In fact, if it concerns a gamemode it may be best to remove the OnFilterScriptInit and -Exit callbacks and the compiler directives that control it.
Reply
#8

Quote:
Originally Posted by Vince
Посмотреть сообщение
Check that you didn't declare below the line "#if defined FILTERSCRIPT". In fact, if it concerns a gamemode it may be best to remove the OnFilterScriptInit and -Exit callbacks and the compiler directives that control it.
Under that
Код:
#if defined FILTERSCRIPT

public OnFilterScriptExit()
{
	return 1;
}
because my "new" is above it.
Reply
#9

Bump.
Reply
#10

Put the new Textdraw stuff up the #endif
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)