SA-MP Forums Archive
Td errors - 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)
+--- Thread: Td errors (/showthread.php?tid=640252)



Td errors - mmostafa - 30.08.2017

PHP код:
C:\Users\Mohamed\Desktop\Test GM (CNR)\New folder\pawno\include\cnr/cnr_textdraws.inc(1285) : warning 213tag mismatch 
plinfo[10] = TextDrawCreate(594.000000, 190.000000, "admin");


Re: Td errors - mmostafa - 01.09.2017

Bump


Re: Td errors - mmostafa - 03.09.2017

Bump1


Re: Td errors - Sew_Sumi - 03.09.2017

PHP код:
// 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);

No "", and ensure you are creating plInfo, as
Код:
Text:plInfo



Re: Td errors - BadJih - 03.09.2017

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
PHP код:
// 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);

No "", and ensure you are creating plInfo, as
Код:
Text:plInfo
the solution