How to Textdraw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to Textdraw (
/showthread.php?tid=214397)
How to Textdraw -
Ironboy - 21.01.2011
Hello!
I want to make a Text Draw
How to do that?
Please any help me with examples
Re: How to Textdraw -
HyperZ - 21.01.2011
https://sampwiki.blast.hk/wiki/TextDrawCreate
and
http://forum.sa-mp.com/showthread.ph...=game+textdraw
Re: How to Textdraw -
Ironboy - 21.01.2011
clive plz help me with complete details
Re: How to Textdraw -
HyperZ - 21.01.2011
Quote:
Originally Posted by Ironboy
clive plz help me with complete details
|
Have you read wiki?
Example from wiki:
pawn Код:
// This variable is used to store the id of the textdraw
// so that we can use it throught the script
new Text:welcomeText;
public OnGameModeInit()
{
// This line is used to create the textdraw.
// Note: This creates a textdraw without any formatting.
welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");
return 1;
}
public OnPlayerConnect(playerid)
{
//This is used to show the player the textdraw when they connect.
TextDrawShowForPlayer(playerid,welcomeText);
}
You can read more from wiki
https://sampwiki.blast.hk/wiki/TextDrawCreate
Re: How to Textdraw -
Ironboy - 21.01.2011
i did this but it shows like this
pawn Код:
C:\Documents and Settings\Ironboy\Desktop\Windows server\gamemodes\Paradise_City.pwn(189) : error 017: undefined symbol "welcomeText"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: How to Textdraw -
HyperZ - 21.01.2011
Quote:
Originally Posted by Ironboy
i did this but it shows like this
pawn Код:
C:\Documents and Settings\Ironboy\Desktop\Windows server\gamemodes\Paradise_City.pwn(189) : error 017: undefined symbol "welcomeText" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
|
Put this under include's:
Re: How to Textdraw -
Ironboy - 21.01.2011
that time it shows
pawn Код:
C:\Documents and Settings\Ironboy\Desktop\Windows server\gamemodes\Paradise_City.pwn(330) : error 021: symbol already defined: "welcomeText"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: How to Textdraw -
HyperZ - 21.01.2011
Quote:
Originally Posted by Ironboy
that time it shows
pawn Код:
C:\Documents and Settings\Ironboy\Desktop\Windows server\gamemodes\Paradise_City.pwn(330) : error 021: symbol already defined: "welcomeText" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
|
You have added 2 'new Text:welcomeText;' variables, press CTRL+F And Search 'new Text:welcomeText;' and Remove it.
Re: How to Textdraw -
Ironboy - 21.01.2011
yayyyyyyyyyyyy Now its working
Thank you Clive <3
Re: How to Textdraw -
HyperZ - 21.01.2011
Quote:
Originally Posted by Ironboy
yayyyyyyyyyyyy Now its working
Thank you Clive <3
|
Lol, No Problem.