21.01.2011, 09:15
Hello!
I want to make a Text Draw
How to do that?
Please any help me with examples
I want to make a Text Draw
How to do that?
Please any help me with examples
// 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);
}
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.
i did this but it shows like this
pawn Код:
|
new Text:welcomeText;
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.