How to Textdraw
#1

Hello!
I want to make a Text Draw
How to do that?
Please any help me with examples
Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawCreate

and

http://forum.sa-mp.com/showthread.ph...=game+textdraw
Reply
#3

clive plz help me with complete details
Reply
#4

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
Reply
#5

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.
Reply
#6

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:

pawn Код:
new Text:welcomeText;
Reply
#7

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.
Reply
#8

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.
Reply
#9

yayyyyyyyyyyyy Now its working
Thank you Clive <3
Reply
#10

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
yayyyyyyyyyyyy Now its working
Thank you Clive <3
Lol, No Problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)