19.07.2015, 18:04
Hello everyone
I do not know why this happens, bug texts remain and some users have more than one text in the head
If you can help please
My Code
I do not know why this happens, bug texts remain and some users have more than one text in the head
If you can help please
My Code
PHP код:
new Text3D:TextUser[MAX_PLAYERS];
//In Disconnect & OnplayerDeath
DestroyDynamic3DTextLabel(TextUser[playerid]);
public OnPlayerSpawn(playerid)
{
// Create 3D label
TextUser[playerid] = CreateDynamic3DTextLabel("",-1,0.0, 0.0, 0.52,8.0,playerid);
//Info Text Label Update
new Byt[80],RankVip[20];
switch(PlayerInfo[playerid][Vip])
{
case 0: RankVip = "{FF8040}No";
case 1: RankVip = "{00FF80}Lvl 1";
case 2: RankVip = "{00FF40}Lvl 2";
}
format(Byt,sizeof(Byt),"RankVip: %s\nLevel: %d\nHeadShoots: %d",RankVip,PlayerInfo[playerid][LevelUp],PlayerInfo[playerid][Hs]);
UpdateDynamic3DTextLabelText(TextUser[playerid],0x808080FF,Byt);
return 1;
}