help pls
#10

errors:

Код:
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"

error on this code:

LoadTextDraws()
{
	healthtd[playerid] = CreatePlayerTextDraw(playerid, 559.798217, 47.166923, "000.00");
	PlayerTextDrawLetterSize(playerid, healthtd[playerid], 0.246009, 1.050000);
	PlayerTextDrawAlignment(playerid, healthtd[playerid], 1);
	PlayerTextDrawColor(playerid, healthtd[playerid], 65535);
	PlayerTextDrawSetShadow(playerid, healthtd[playerid], 1);
	PlayerTextDrawSetOutline(playerid, healthtd[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, healthtd[playerid], 255);
	PlayerTextDrawFont(playerid, healthtd[playerid], 1);
	PlayerTextDrawSetProportional(playerid, healthtd[playerid], 1);
	PlayerTextDrawSetShadow(playerid, healthtd[playerid], 1);
}
code:

PHP код:
new PlayerText:healthtd[MAX_PLAYERS];
public 
OnGameModeInit()
{
    
LoadTextDraws();
    return 
1;
}
public 
OnPlayerRequestSpawn(playerid)
{
    
PlayerTextDrawShow(playeridhealthtd[playerid]);
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
PlayerTextDrawHide(playeridhealthtd[playerid]);
    return 
1;
}
public 
OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    new 
string[12], Float:hp;
    
GetPlayerHealth(playeridhp);
    
format(stringsizeof(string), "%0f"hp);                   
    
PlayerTextDrawSetString(playeridhealthtd[playerid], string);
    return 
1;
}
LoadTextDraws()
{
    
healthtd[playerid] = CreatePlayerTextDraw(playerid559.79821747.166923"000.00");
    
PlayerTextDrawLetterSize(playeridhealthtd[playerid], 0.2460091.050000);
    
PlayerTextDrawAlignment(playeridhealthtd[playerid], 1);
    
PlayerTextDrawColor(playeridhealthtd[playerid], 65535);
    
PlayerTextDrawSetShadow(playeridhealthtd[playerid], 1);
    
PlayerTextDrawSetOutline(playeridhealthtd[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridhealthtd[playerid], 255);
    
PlayerTextDrawFont(playeridhealthtd[playerid], 1);
    
PlayerTextDrawSetProportional(playeridhealthtd[playerid], 1);
    
PlayerTextDrawSetShadow(playeridhealthtd[playerid], 1);

Reply


Messages In This Thread
textdraw help - by DeStRoY232 - 23.10.2017, 12:53
Re: help pls - by kAn3 - 23.10.2017, 12:57
Re: help pls - by Xeon™ - 23.10.2017, 12:58
Re: help pls - by DeStRoY232 - 23.10.2017, 12:59
Re: help pls - by Fratello - 23.10.2017, 13:02
Re: help pls - by DeStRoY232 - 23.10.2017, 13:03
Re: help pls - by Fratello - 23.10.2017, 13:05
Re: help pls - by DeStRoY232 - 23.10.2017, 13:13
Re: help pls - by kAn3 - 23.10.2017, 14:19
Re: help pls - by DeStRoY232 - 23.10.2017, 15:23

Forum Jump:


Users browsing this thread: 2 Guest(s)