A small help plzzz
#1

hey guyzz....

When i put this Textdraw code:
Код:
//-------------------logo-------------------------------------------------------
	// TextDraw developed using Zamaroht's Textdraw Editor 1.0

	// On top of script:
	new Text:Textdraw0;

	// In OnGameModeInit prefferably, we procced to create our textdraws:
	Textdraw0 = TextDrawCreate(466.000000, 315.000000, "Crazy Generations");
	TextDrawBackgroundColor(Textdraw0, -1);
	TextDrawFont(Textdraw0, 0);
	TextDrawLetterSize(Textdraw0, 0.709999, 3.099998);
	TextDrawColor(Textdraw0, -16776961);
	TextDrawSetOutline(Textdraw0, 1);
	TextDrawSetProportional(Textdraw0, 1);
	TextDrawShowForPlayer(ForAll);

	// You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
	// TextDrawDestroy functions to show, hide, and destroy the textdraw.

It is showing this error .. can u pls help me to fix this


Код:
E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(3084) : error 017: undefined symbol "ForAll"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Код:
TextDrawShowForAll(Textdraw0);
Reply
#3

Try this
pawn Код:
//-------------------logo-------------------------------------------------------
    // TextDraw developed using Zamaroht's Textdraw Editor 1.0

    // On top of script:
    new Text:Textdraw0;

    // In OnGameModeInit prefferably, we procced to create our textdraws:
    Textdraw0 = TextDrawCreate(466.000000, 315.000000, "Crazy Generations");
    TextDrawBackgroundColor(Textdraw0, -1);
    TextDrawFont(Textdraw0, 0);
    TextDrawLetterSize(Textdraw0, 0.709999, 3.099998);
    TextDrawColor(Textdraw0, -16776961);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawShowForAll(Textdraw0);
Reply
#4

ForAll is not a function, the comments are instructing you to append 'ForAll' to the function name and remove 'Player'.

https://sampwiki.blast.hk/wiki/TextDrawHideForAll
https://sampwiki.blast.hk/wiki/TextDrawShowForAll

EDIT: Wasn't expecting that many replies in ~1min.
Reply
#5

ty fixed thnx guyz +rep
Reply
#6

guyz... but the textdraw is nt loading...!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)